forked from qt-creator/qt-creator
CppEditor: Re-use Symbol::filePath()
Change-Id: Ic958fc0b8916c1afe8b955b140a5cf76e971623d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -329,9 +329,8 @@ static void find_helper(QFutureInterface<CPlusPlus::Usage> &future,
|
||||
|
||||
const CPlusPlus::Snapshot snapshot = context.snapshot();
|
||||
|
||||
const Utils::FilePath sourceFile = Utils::FilePath::fromUtf8(symbol->fileName(),
|
||||
symbol->fileNameLength());
|
||||
Utils::FilePaths files{sourceFile};
|
||||
const FilePath sourceFile = symbol->filePath();
|
||||
FilePaths files{sourceFile};
|
||||
|
||||
if (symbol->asClass()
|
||||
|| symbol->asForwardClassDeclaration()
|
||||
|
||||
Reference in New Issue
Block a user