forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user