aboutsummaryrefslogtreecommitdiff
path: root/lib/converters.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-16 18:44:35 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-16 18:44:35 +0900
commit42b1e859f10d352eb1b8ad5ad5226500f65d9dfe (patch)
treecfe612defc354301efa8bf613a35f949e3eaebf5 /lib/converters.h
parent1dd130831d406b526df274a9f9f9fb4ffd5a0d58 (diff)
downloadlibquotient-42b1e859f10d352eb1b8ad5ad5226500f65d9dfe.tar.gz
libquotient-42b1e859f10d352eb1b8ad5ad5226500f65d9dfe.zip
converters.h: Make it still compile with Qt older than 5.6
Some folks are still on Ubuntu vivid :(
Diffstat (limited to 'lib/converters.h')
-rw-r--r--lib/converters.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/converters.h b/lib/converters.h
index eaf2a32e..4a206a4c 100644
--- a/lib/converters.h
+++ b/lib/converters.h
@@ -40,7 +40,11 @@ namespace std
{
size_t operator()(const QString& s) const Q_DECL_NOEXCEPT
{
- return qHash(s, uint(qGlobalQHashSeed()));
+ return qHash(s
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
+ , uint(qGlobalQHashSeed())
+#endif
+ );
}
};
}