forked from qt-creator/qt-creator
CPlusPlus: Use FilePath for resolved include paths
... and fix fallout. Change-Id: I66886e91ff476eff15db51cc024a8021e952d44d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -1794,7 +1794,7 @@ void CppModelManager::renameIncludes(const Utils::FilePath &oldFilePath,
|
||||
return;
|
||||
|
||||
const QList<Snapshot::IncludeLocation> locations = snapshot().includeLocationsOfDocument(
|
||||
isUiFile ? oldFileName : oldFilePath.toString());
|
||||
isUiFile ? FilePath::fromString(oldFileName) : oldFilePath);
|
||||
for (const Snapshot::IncludeLocation &loc : locations) {
|
||||
const FilePath filePath = loc.first->filePath();
|
||||
|
||||
|
Reference in New Issue
Block a user