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
This commit is contained in:
Wladimir J. van der Laan 2015-05-18 12:04:58 +02:00
parent be31ff7d8d
commit e2e7f9513f
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
1 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,9 @@
#include <QPalette>
#include <QPixmap>
static void MakeSingleColorImage(QImage& img, const QColor& colorbase)
namespace {
void MakeSingleColorImage(QImage& img, const QColor& colorbase)
{
img = img.convertToFormat(QImage::Format_ARGB32);
for (int x = img.width(); x--; )
@ -24,6 +26,8 @@ static void MakeSingleColorImage(QImage& img, const QColor& colorbase)
}
}
}
QImage SingleColorImage(const QString& filename, const QColor& colorbase)
{
QImage img(filename);