Axivion: Replace FilePath::toString

Replace occurrences of FilePath::toString with more sensible alternatives.

Change-Id: If65f899db3b94d1560df188914bf5ab44a420b03
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Andrii Semkiv
2024-09-06 12:18:42 +02:00
committed by andrii.semkiv
parent 75cba34fa3
commit f5dab0c7a5

View File

@@ -1140,7 +1140,7 @@ void setAnalysisVersion(const QString &version)
Utils::FilePath findFileForIssuePath(const Utils::FilePath &issuePath) Utils::FilePath findFileForIssuePath(const Utils::FilePath &issuePath)
{ {
QTC_ASSERT(dd, return {}); QTC_ASSERT(dd, return {});
const FilePaths result = dd->m_fileFinder.findFile(QUrl::fromLocalFile(issuePath.toString())); const FilePaths result = dd->m_fileFinder.findFile(issuePath.toUrl());
if (result.size() == 1) if (result.size() == 1)
return dd->m_project->projectDirectory().resolvePath(result.first()); return dd->m_project->projectDirectory().resolvePath(result.first());
return {}; return {};