Utils: Fix compile with MinGW

Amends fbb8d94e55.

Change-Id: Ib62733031bfed435592da57d7f52e10473953669
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2023-01-10 07:42:11 +01:00
committed by hjk
parent f5dce50dae
commit 677fd6ba9a
2 changed files with 6 additions and 1 deletions

View File

@@ -1995,6 +1995,11 @@ QTCREATOR_UTILS_EXPORT size_t qHash(const FilePath &filePath, uint seed)
return qHash(filePath.path(), seed); return qHash(filePath.path(), seed);
} }
QTCREATOR_UTILS_EXPORT size_t qHash(const FilePath &filePath)
{
return qHash(filePath, 0);
}
QTCREATOR_UTILS_EXPORT QDebug operator<<(QDebug dbg, const FilePath &c) QTCREATOR_UTILS_EXPORT QDebug operator<<(QDebug dbg, const FilePath &c)
{ {
return dbg << c.toString(); return dbg << c.toString();

View File

@@ -250,7 +250,7 @@ private:
QTCREATOR_UTILS_EXPORT friend bool operator>=(const FilePath &first, const FilePath &second); QTCREATOR_UTILS_EXPORT friend bool operator>=(const FilePath &first, const FilePath &second);
QTCREATOR_UTILS_EXPORT friend size_t qHash(const FilePath &a, uint seed); QTCREATOR_UTILS_EXPORT friend size_t qHash(const FilePath &a, uint seed);
QTCREATOR_UTILS_EXPORT friend size_t qHash(const FilePath &a) { return qHash(a, 0); } QTCREATOR_UTILS_EXPORT friend size_t qHash(const FilePath &a);
QTCREATOR_UTILS_EXPORT friend QDebug operator<<(QDebug dbg, const FilePath &c); QTCREATOR_UTILS_EXPORT friend QDebug operator<<(QDebug dbg, const FilePath &c);