forked from qt-creator/qt-creator
Utils: add FilePath::baseName
Removing some FilePath::toFileInfo() calls Change-Id: I49be2ef260f225e07b64ee8ace6a8cd47a9d8bb2 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -792,7 +792,7 @@ void ClangdClient::Private::addSearchResultsForFile(ReferencesData &refData,
|
||||
if (refData.search->supportsReplace()) {
|
||||
const bool fileInSession = SessionManager::projectForFile(file);
|
||||
item.setSelectForReplacement(fileInSession);
|
||||
if (fileInSession && file.toFileInfo().baseName().compare(
|
||||
if (fileInSession && file.baseName().compare(
|
||||
refData.replacementData->oldSymbolName,
|
||||
Qt::CaseInsensitive) == 0) {
|
||||
refData.replacementData->fileRenameCandidates << file; // TODO: We want to do this only for types. Use SymbolInformation once we have it.
|
||||
|
||||
Reference in New Issue
Block a user