App/Toponaming: Minor code cleanup

This commit is contained in:
Chris Hennes
2023-09-13 09:25:22 -05:00
parent 9b55b3a70b
commit 564f829e5c
4 changed files with 17 additions and 16 deletions

View File

@@ -221,16 +221,16 @@ PropertyData PropertyContainer::propertyData;
void PropertyContainer::beforeSave() const
{
std::map<std::string,Property*> Map;
std::map<std::string, Property*> Map;
getPropertyMap(Map);
for(auto &entry : Map) {
for (auto& entry : Map) {
auto prop = entry.second;
if(!prop->testStatus(Property::PropDynamic)
&& (prop->testStatus(Property::Transient) ||
getPropertyType(prop) & Prop_Transient))
{
if (!prop->testStatus(Property::PropDynamic)
&& (prop->testStatus(Property::Transient)
|| ((getPropertyType(prop) & Prop_Transient) != 0))) {
// Nothing
} else {
}
else {
prop->beforeSave();
}
}
@@ -254,8 +254,9 @@ void PropertyContainer::Save (Base::Writer &writer) const
{
transients.push_back(prop);
it = Map.erase(it);
}else
} else {
++it;
}
}
writer.incInd(); // indentation for 'Properties Count'