summaryrefslogtreecommitdiffstats
path: root/core/qthelper.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-06-02 18:03:03 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-04 02:27:36 +0800
commit08962cb38dbd7e07d98397826c5192f0a4156143 (patch)
treeb974f574d8b68bd97f6b50bd0150fbd83ac6dd87 /core/qthelper.h
parent5375eee4e6a6af1402c2bf8f7cce40fc4f5340f5 (diff)
downloadsubsurface-08962cb38dbd7e07d98397826c5192f0a4156143.tar.gz
Dive pictures: index local file name by canonical filname
The connection canonical filename to local filename was done via two maps: 1) canonical filename -> hash 2) hash -> local filename But the local filename was always queried from the canonical filename. Therefore, directly index the former with the latter. On startup, convert the old map to the new one. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qthelper.h')
-rw-r--r--core/qthelper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qthelper.h b/core/qthelper.h
index f48032d13..65a818262 100644
--- a/core/qthelper.h
+++ b/core/qthelper.h
@@ -32,7 +32,7 @@ QByteArray hashFile(const QString &filename);
QString hashString(const char *filename);
QString thumbnailFileName(const QString &filename);
void learnImages(const QDir dir, int max_recursions);
-void add_hash(const QString &filename, const QByteArray &hash);
+void learnPictureFilename(const QString &originalName, const QString &localName);
void hashPicture(QString filename);
extern "C" char *hashstring(const char *filename);
QString localFilePath(const QString &originalFilename);