Refactor all element name pairs into clearer struct names - renames

This commit is contained in:
bgbsww
2024-07-19 16:23:27 -04:00
parent 5afdc19874
commit 97473a838f
2 changed files with 4 additions and 4 deletions

View File

@@ -37,6 +37,7 @@
#include "Document.h"
#include "DocumentObject.h"
#include "DocumentObjectPy.h"
#include "DocumentObserver.h"
#include "ObjectIdentifier.h"
#include "ElementNamingUtils.h"
#include "GeoFeature.h"
@@ -516,7 +517,7 @@ bool PropertyLinkBase::_updateElementReference(DocumentObject *feature,
(void)obj;
(void)reverse;
(void)notify;
shadow.second = sub;
shadow.oldName = sub;
return false;
#endif
}
@@ -2928,8 +2929,8 @@ void PropertyLinkSubList::getLinksTo(std::vector<App::ObjectIdentifier>& identif
if (i < (int)_ShadowSubList.size()) {
const auto& shadow = _ShadowSubList[i];
App::SubObjectT sobjT(obj,
shadow.first.empty() ? shadow.second.c_str()
: shadow.first.c_str());
shadow.newName.empty() ? shadow.oldName.c_str()
: shadow.newName.c_str());
if (sobjT.getSubObject() == subObject && sobjT.getOldElementName() == subElement) {
identifiers.emplace_back(*this);
continue;

View File

@@ -31,7 +31,6 @@
#include <unordered_set>
#include <unordered_map>
// #include "GeoFeature.h"
#include "Property.h"
namespace Base {