From 677fd6ba9a91add241447a067c65f46c61b2af94 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 10 Jan 2023 07:42:11 +0100 Subject: [PATCH] Utils: Fix compile with MinGW Amends fbb8d94e55b. Change-Id: Ib62733031bfed435592da57d7f52e10473953669 Reviewed-by: Eike Ziller --- src/libs/utils/filepath.cpp | 5 +++++ src/libs/utils/filepath.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libs/utils/filepath.cpp b/src/libs/utils/filepath.cpp index e80247a70e9..0362bc45761 100644 --- a/src/libs/utils/filepath.cpp +++ b/src/libs/utils/filepath.cpp @@ -1995,6 +1995,11 @@ QTCREATOR_UTILS_EXPORT size_t qHash(const FilePath &filePath, uint 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) { return dbg << c.toString(); diff --git a/src/libs/utils/filepath.h b/src/libs/utils/filepath.h index 01050d70c33..b9af9cc05b8 100644 --- a/src/libs/utils/filepath.h +++ b/src/libs/utils/filepath.h @@ -250,7 +250,7 @@ private: 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) { 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);