From f8835751dccdf33a0150993f2fb9a2656bb8b973 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 16 Feb 2018 22:45:41 +0100 Subject: [PATCH] Cleanup: Make helper function haveHash() of static linkage The function is only used in the qthelper.cpp translation unit. Signed-off-by: Berthold Stoeger --- core/qthelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 798d98c20..30338a8cd 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -1160,7 +1160,7 @@ void learnHash(struct picture *picture, QByteArray hash) picture->hash = strdup(hash.toHex()); } -bool haveHash(const QString &filename) +static bool haveHash(const QString &filename) { QMutexLocker locker(&hashOfMutex); return hashOf.contains(filename);