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

@@ -848,12 +848,12 @@ IndexedName ElementMap::find(const MappedName& name, ElementIDRefs* sids) const
MappedName ElementMap::find(const IndexedName& idx, ElementIDRefs* sids) const
{
if (!idx) {
return MappedName();
return {};
}
auto iter = this->indexedNames.find(idx.getType());
if (iter == this->indexedNames.end()) {
return MappedName();
return {};
}
auto& indices = iter->second;