mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
18cb4bd6e5
* Add `<functional>` include to QStringHash.hpp This ensures the base `std::hash` template is declared before this specialization * Add missing includes to `src/providers/twitch/TwitchAccountManager.hpp` * Move explicit HelixChatters constructor to the source file * Remove unused includes & add used includes to NicknamesModel.hpp * NicknamesModel.hpp: Remove `virtual` when `override` is used * Add missing QStringHash include to TwitchEmotes.cpp * Add missing includes to various files * Print Qt version in cmake step Technically unrelated, but I'm sneaking it in * Add changelog entry
21 lines
289 B
C++
21 lines
289 B
C++
#pragma once
|
|
|
|
#include <QHash>
|
|
#include <QString>
|
|
|
|
#include <functional>
|
|
|
|
namespace std {
|
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
|
template <>
|
|
struct hash<QString> {
|
|
std::size_t operator()(const QString &s) const
|
|
{
|
|
return qHash(s);
|
|
}
|
|
};
|
|
#endif
|
|
|
|
} // namespace std
|