VcsPlugin: Simplify return statements

Change-Id: Icdf580fb1ca6860a82f3594e4676fb450b55d174
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2023-08-02 11:45:36 +02:00
parent 224e4eeb59
commit 88926ed1a8
8 changed files with 14 additions and 16 deletions

View File

@@ -220,7 +220,7 @@ QString StateListener::windowTitleVcsTopic(const FilePath &filePath)
searchPath = projects.first()->projectDirectory();
}
if (searchPath.isEmpty())
return QString();
return {};
FilePath topLevelPath;
IVersionControl *vc = VcsManager::findVersionControlForDirectory(
searchPath, &topLevelPath);
@@ -232,7 +232,7 @@ static inline QString displayNameOfEditor(const FilePath &fileName)
IDocument *document = DocumentModel::documentForFilePath(fileName);
if (document)
return document->displayName();
return QString();
return {};
}
void StateListener::slotStateChanged()