forked from qt-creator/qt-creator
Core: Work around upstream introduction of std::hash<QString>
Change-Id: I51d7e97011d03b1b1af921e55ccc40a61d8822f7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
|
#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
|
||||||
namespace std {
|
namespace std {
|
||||||
template<> struct hash<QString>
|
template<> struct hash<QString>
|
||||||
{
|
{
|
||||||
@@ -47,6 +48,7 @@ template<> struct hash<QString>
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
} // namespace std
|
} // namespace std
|
||||||
|
#endif
|
||||||
|
|
||||||
using ExtensionMap = std::unordered_map<QString, Core::JsExpander::ObjectFactory>;
|
using ExtensionMap = std::unordered_map<QString, Core::JsExpander::ObjectFactory>;
|
||||||
Q_GLOBAL_STATIC(ExtensionMap, globalJsExtensions);
|
Q_GLOBAL_STATIC(ExtensionMap, globalJsExtensions);
|
||||||
|
|||||||
Reference in New Issue
Block a user