File indexing completed on 2024-11-24 03:56:28
0001 /* 0002 * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QByteArray> 0010 #include <QHash> 0011 0012 #include <functional> 0013 0014 #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) 0015 namespace std { 0016 template<> struct hash<QByteArray> { 0017 std::size_t operator()(const QByteArray& s) const noexcept { 0018 return (size_t) qHash(s); 0019 } 0020 }; 0021 } 0022 #endif 0023