App: modernize C++: return braced init list

This commit is contained in:
wmayer
2023-08-17 13:15:08 +02:00
committed by wwmayer
parent 59760c723f
commit af8c05c507
34 changed files with 70 additions and 74 deletions

View File

@@ -593,7 +593,7 @@ std::vector<App::Document*> Application::getDocuments() const
std::string Application::getUniqueDocumentName(const char *Name, bool tempDoc) const
{
if (!Name || *Name == '\0')
return std::string();
return {};
std::string CleanName = Base::Tools::getIdentifier(Name);
// name in use?
@@ -3160,7 +3160,7 @@ std::tuple<QString, QString, QString> getCustomPaths()
userTemp = fi.absoluteFilePath();
}
return std::tuple<QString, QString, QString>(userHome, userData, userTemp);
return {userHome, userData, userTemp};
}
/*!