forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user