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 2bc90e6090
commit 89bdd489b0
34 changed files with 70 additions and 74 deletions

View File

@@ -3799,7 +3799,7 @@ const char * Document::getObjectName(DocumentObject *pFeat) const
std::string Document::getUniqueObjectName(const char *Name) const
{
if (!Name || *Name == '\0')
return std::string();
return {};
std::string CleanName = Base::Tools::getIdentifier(Name);
// name in use?