forked from qt-creator/qt-creator
Utils: Fix FilePath::hash() regarding to case sensitivity
Change-Id: I2b7f7fa141ec80ec6f0256c4f384ed622b35ba15 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -1219,7 +1219,7 @@ FilePath FilePath::stringAppended(const QString &str) const
|
|||||||
|
|
||||||
size_t FilePath::hash(uint seed) const
|
size_t FilePath::hash(uint seed) const
|
||||||
{
|
{
|
||||||
if (HostOsInfo::fileNameCaseSensitivity() == Qt::CaseInsensitive)
|
if (caseSensitivity() == Qt::CaseInsensitive)
|
||||||
return qHash(path().toCaseFolded(), seed);
|
return qHash(path().toCaseFolded(), seed);
|
||||||
return qHash(path(), seed);
|
return qHash(path(), seed);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user