Utils: Use hidden friends for FilePath comparison, hash and debug

Change-Id: Ic458d64cecdc811bac6b1cfaeae344f1da1b8211
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-01-06 11:37:23 +01:00
parent 1874906ce1
commit fbb8d94e55
3 changed files with 64 additions and 80 deletions

View File

@@ -25,7 +25,7 @@ class CMakeFileInfo
{
public:
bool operator==(const CMakeFileInfo& other) const { return path == other.path; }
friend auto qHash(const CMakeFileInfo &info, uint seed = 0) { return info.path.hash(seed); }
friend size_t qHash(const CMakeFileInfo &info, uint seed = 0) { return qHash(info.path, seed); }
Utils::FilePath path;
bool isCMake = false;