summaryrefslogtreecommitdiffstats
path: root/qt-models/divepicturemodel.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-12-17 14:48:04 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-18 12:07:10 -0800
commit2f5f1e036eb7f4dc74ee3a6ba00c62b565ec8df4 (patch)
tree39b64c7354cadc9fca4fc693f8b3f99b2072e4ca /qt-models/divepicturemodel.cpp
parent78bafe8f620a0661e12ad50e36c56251b499ab68 (diff)
downloadsubsurface-2f5f1e036eb7f4dc74ee3a6ba00c62b565ec8df4.tar.gz
Make scaleImages() a static function
It was only used by the DivePictureModel class, no need to export it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divepicturemodel.cpp')
-rw-r--r--qt-models/divepicturemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp
index d886fd767..ff4e187ae 100644
--- a/qt-models/divepicturemodel.cpp
+++ b/qt-models/divepicturemodel.cpp
@@ -10,7 +10,7 @@
extern QHash <QString, QImage> thumbnailCache;
static QMutex thumbnailMutex;
-void scaleImages(PictureEntry &entry)
+static void scaleImages(PictureEntry &entry)
{
QMutexLocker l(&thumbnailMutex);
if (thumbnailCache.contains(entry.filename) && !thumbnailCache.value(entry.filename).isNull()) {