diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-05-18 12:04:58 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-05-19 11:27:54 +0200 |
commit | e2e7f9513fc77a4659da0e2bfb8634c1ade3a1bb (patch) | |
tree | c6c5dbbd4c8f990985ae412c02f1841274beb3c6 | |
parent | be31ff7d8ddb86d4499c7619ac2ec3a59434a596 (diff) |
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
-rw-r--r-- | src/qt/scicon.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qt/scicon.cpp b/src/qt/scicon.cpp index b2f2399b24..c493b5569e 100644 --- a/src/qt/scicon.cpp +++ b/src/qt/scicon.cpp @@ -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); |