mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Remove std::hash<QString> specialization for Qt >= 5.14
This commit is contained in:
parent
1a8ef22923
commit
f769f179c8
@ -78,6 +78,12 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK (5, 14, 0)
|
||||
// The Qt devs "fixed" this in 5.14 to specialize to use their own
|
||||
// qHash(), it doesn't fix the problem we were addressing as qHash()
|
||||
// returns a uint so is still a poorly distributed 32-bit value on
|
||||
// 64-bit platforms, but we can't specialize ourselves as Qt already
|
||||
// has - sigh.
|
||||
namespace std
|
||||
{
|
||||
// std::hash<> specialization for QString based on the dbj2
|
||||
@ -97,6 +103,7 @@ namespace std
|
||||
}
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
||||
// Register some useful Qt types with QMetaType
|
||||
Q_DECLARE_METATYPE (QHostAddress);
|
||||
|
Loading…
Reference in New Issue
Block a user