forked from qt-creator/qt-creator
ProjectExplorer: Simplify return statements
Change-Id: Ifef006cd2dcc567097ce16376eab9ccedb092f04 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -406,14 +406,14 @@ QString ProjectManagerPrivate::sessionTitle(const FilePath &filePath)
|
||||
} else {
|
||||
return sessionName.isEmpty() ? Tr::tr("Untitled") : sessionName;
|
||||
}
|
||||
return QString();
|
||||
return {};
|
||||
}
|
||||
|
||||
QString ProjectManagerPrivate::locationInProject(const FilePath &filePath)
|
||||
{
|
||||
const Project *project = ProjectManager::projectForFile(filePath);
|
||||
if (!project)
|
||||
return QString();
|
||||
return {};
|
||||
|
||||
const FilePath parentDir = filePath.parentDir();
|
||||
if (parentDir == project->projectDirectory())
|
||||
|
||||
Reference in New Issue
Block a user