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

@@ -374,13 +374,13 @@ const std::string &ObjectIdentifier::toString() const
std::string ObjectIdentifier::toPersistentString() const {
if(!owner)
return std::string();
return {};
std::ostringstream s;
ResolveResults result(*this);
if(result.propertyIndex >= (int)components.size())
return std::string();
return {};
if(localProperty ||
(result.resolvedProperty &&
@@ -1776,7 +1776,7 @@ App::any ObjectIdentifier::getValue(bool pathValue, bool *isPseudoProperty) cons
}catch(Py::Exception &) {
Base::PyException::ThrowException();
}
return App::any();
return {};
}
Py::Object ObjectIdentifier::getPyValue(bool pathValue, bool *isPseudoProperty) const