Skip to content

Commit e2e7f95

Browse files
committed
qt: fix unused function warning in scicon.cpp
Enclose MakeSingleColorImage in an anonymous namespace to avoid a unused function warning on Windows and MacOSX. Github-Pull: #6143
1 parent be31ff7 commit e2e7f95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/qt/scicon.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#include <QPalette>
1212
#include <QPixmap>
1313

14-
static void MakeSingleColorImage(QImage& img, const QColor& colorbase)
14+
namespace {
15+
16+
void MakeSingleColorImage(QImage& img, const QColor& colorbase)
1517
{
1618
img = img.convertToFormat(QImage::Format_ARGB32);
1719
for (int x = img.width(); x--; )
@@ -24,6 +26,8 @@ static void MakeSingleColorImage(QImage& img, const QColor& colorbase)
2426
}
2527
}
2628

29+
}
30+
2731
QImage SingleColorImage(const QString& filename, const QColor& colorbase)
2832
{
2933
QImage img(filename);

0 commit comments

Comments
 (0)