ProjectExplorer: Simplify return statements

Change-Id: Ifef006cd2dcc567097ce16376eab9ccedb092f04
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2023-08-01 20:52:58 +02:00
parent 9098bcd706
commit 8d8e60436d
40 changed files with 91 additions and 100 deletions

View File

@@ -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())