forked from qt-creator/qt-creator
Utils: Fix compile with MinGW
Amends fbb8d94e55
.
Change-Id: Ib62733031bfed435592da57d7f52e10473953669
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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();
|
||||||
|
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user