diff options
Diffstat (limited to 'src/cachehandler.hpp')
| -rw-r--r-- | src/cachehandler.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cachehandler.hpp b/src/cachehandler.hpp index ca782bb..74f61a2 100644 --- a/src/cachehandler.hpp +++ b/src/cachehandler.hpp @@ -4,8 +4,27 @@ #include "mimeparser.hpp" #include <memory> #include <unordered_map> + #include <QUrl> +#include <QString> #include <QByteArray> +#include <QtGlobal> + +// Need a QString hash implementation for Qt versions below 5.14 +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) +#include <QHash> +namespace std +{ + template<> + struct hash<QString> + { + std::size_t operator()(const QString& s) const noexcept + { + return (size_t)qHash(s); + } + }; +} +#endif struct CachedPage { |
