Skip to content

Commit

Permalink
Refactor all element name pairs into clearer struct names - renames
Browse files Browse the repository at this point in the history
  • Loading branch information
bgbsww committed Jul 22, 2024
1 parent 5afdc19 commit 97473a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/App/PropertyLinks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -516,7 +517,7 @@ bool PropertyLinkBase::_updateElementReference(DocumentObject *feature,
(void)obj;
(void)reverse;
(void)notify;
shadow.second = sub;
shadow.oldName = sub;
return false;
#endif
}
Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/App/PropertyLinks.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <unordered_set>
#include <unordered_map>

// #include "GeoFeature.h"
#include "Property.h"

namespace Base {
Expand Down

0 comments on commit 97473a8

Please sign in to comment.