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

@@ -364,7 +364,7 @@ std::string SubObjectT::getNewElementName() const {
std::pair<std::string, std::string> element;
auto obj = getObject();
if(!obj)
return std::string();
return {};
GeoFeature::resolveElement(obj,subname.c_str(),element);
return std::move(element.first);
}
@@ -373,7 +373,7 @@ std::string SubObjectT::getOldElementName(int *index) const {
std::pair<std::string, std::string> element;
auto obj = getObject();
if(!obj)
return std::string();
return {};
GeoFeature::resolveElement(obj,subname.c_str(),element);
if(!index)
return std::move(element.second);