Cleanup: Make helper function haveHash() of static linkage

The function is only used in the qthelper.cpp translation unit.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-02-16 22:45:41 +01:00 committed by Lubomir I. Ivanov
parent eaff0ddee7
commit f8835751dc

View file

@ -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);