summaryrefslogtreecommitdiffstats
path: root/core/qthelper.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-02-21 10:00:16 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-21 13:14:56 -0800
commitdbd99f706ecb6074d5f80573a881b98a3e30ce25 (patch)
tree8acf5a2ce48e6a148cd9ebd6761faa97f3df1869 /core/qthelper.h
parent508387b1e194d4d723b2bd8cb2c48d49e2c95ba9 (diff)
downloadsubsurface-dbd99f706ecb6074d5f80573a881b98a3e30ce25.tar.gz
Many filenames are const strings
So we can use string constants for those Signed-off-by: Robert C. Helling <helling@atdotde.de>
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 4d39ad368..24215d43f 100644
--- a/core/qthelper.h
+++ b/core/qthelper.h
@@ -27,7 +27,7 @@ void learnImages(const QDir dir, int max_recursions);
void add_hash(const QString filename, QByteArray hash);
void hashPicture(struct picture *picture);
QString localFilePath(const QString originalFilename);
-QString fileFromHash(char *hash);
+QString fileFromHash(const char *hash);
void learnHash(struct picture *picture, QByteArray hash);
extern "C" void cache_picture(struct picture *picture);
weight_t string_to_weight(const char *str);