Refactor all element name pairs into clearer struct names - renames
This commit is contained in:
@@ -461,8 +461,8 @@ bool ObjectIdentifier::replaceObject(ObjectIdentifier &res, const App::DocumentO
|
||||
}
|
||||
res.subObjectName = String(r.second,true);
|
||||
res._cache.clear();
|
||||
res.shadowSub.first.clear();
|
||||
res.shadowSub.second.clear();
|
||||
res.shadowSub.newName.clear();
|
||||
res.shadowSub.oldName.clear();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1833,10 +1833,10 @@ void ObjectIdentifier::setValue(const App::any &value) const
|
||||
}
|
||||
|
||||
const std::string &ObjectIdentifier::getSubObjectName(bool newStyle) const {
|
||||
if(newStyle && !shadowSub.first.empty())
|
||||
return shadowSub.first;
|
||||
if(!shadowSub.second.empty())
|
||||
return shadowSub.second;
|
||||
if(newStyle && !shadowSub.newName.empty())
|
||||
return shadowSub.newName;
|
||||
if(!shadowSub.oldName.empty())
|
||||
return shadowSub.oldName;
|
||||
return subObjectName.getString();
|
||||
}
|
||||
|
||||
@@ -1873,8 +1873,8 @@ void ObjectIdentifier::importSubNames(const ObjectIdentifier::SubNameMap &subNam
|
||||
return;
|
||||
subObjectName = String(it->second,true);
|
||||
_cache.clear();
|
||||
shadowSub.first.clear();
|
||||
shadowSub.second.clear();
|
||||
shadowSub.newName.clear();
|
||||
shadowSub.oldName.clear();
|
||||
}
|
||||
|
||||
bool ObjectIdentifier::updateElementReference(ExpressionVisitor &v,
|
||||
|
||||
Reference in New Issue
Block a user