aboutsummaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index e7bf7dcf4..0029ca13a 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -1149,15 +1149,12 @@ QByteArray hashFile(const QString filename)
}
}
-void learnHash(struct picture *picture, QByteArray hash)
+void learnHash(const struct picture *picture, QByteArray hash)
{
if (hash.isNull())
return;
- if (picture->hash)
- free(picture->hash);
QMutexLocker locker(&hashOfMutex);
hashOf[QString(picture->filename)] = hash;
- picture->hash = strdup(hash.toHex());
}
static bool haveHash(const QString &filename)