forked from qt-creator/qt-creator
Debugger[CDB]: Use file normalization function from utils.
Remove complicated/expensive function in dbgwinutils in favour of the utils one (improved to upper case the drive letter) as it is sufficient now with the improved checking in editor manager/location mark.
This commit is contained in:
@@ -173,6 +173,9 @@ QTCREATOR_UTILS_EXPORT QString normalizePathName(const QString &name)
|
||||
canonicalName = getLongPathName(canonicalName);
|
||||
if (canonicalName.isEmpty())
|
||||
return name;
|
||||
// Upper case drive letter
|
||||
if (canonicalName.size() > 2 && canonicalName.at(1) == QLatin1Char(':'))
|
||||
canonicalName[0] = canonicalName.at(0).toUpper();
|
||||
return canonicalName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user