From ee72afc51d9d450da2e5861637751e6539462aff Mon Sep 17 00:00:00 2001 From: bgbsww Date: Fri, 19 Jul 2024 16:23:27 -0400 Subject: [PATCH] Refactor all element name pairs into clearer struct names - renames --- src/App/PropertyLinks.cpp | 7 ++++--- src/App/PropertyLinks.h | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App/PropertyLinks.cpp b/src/App/PropertyLinks.cpp index d7928b8481..b7f81199cc 100644 --- a/src/App/PropertyLinks.cpp +++ b/src/App/PropertyLinks.cpp @@ -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& 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; diff --git a/src/App/PropertyLinks.h b/src/App/PropertyLinks.h index ce81a5467f..dd17cc3448 100644 --- a/src/App/PropertyLinks.h +++ b/src/App/PropertyLinks.h @@ -31,7 +31,6 @@ #include #include -// #include "GeoFeature.h" #include "Property.h" namespace Base {