MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / adjustLinks

Method adjustLinks

src/App/ObjectIdentifier.cpp:1837–1856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1835}
1836
1837bool ObjectIdentifier::adjustLinks(ExpressionVisitor& v,
1838 const std::set<App::DocumentObject*>& inList)
1839{
1840 ResolveResults result(*this);
1841 if (!result.resolvedDocumentObject) {
1842 return false;
1843 }
1844 if (result.resolvedSubObject) {
1845 PropertyLinkSub prop;
1846 prop.setValue(result.resolvedDocumentObject, {subObjectName.getString()});
1847 if (prop.adjustLink(inList)) {
1848 v.aboutToChange();
1849 documentObjectName = String(prop.getValue()->getNameInDocument(), false, true);
1850 subObjectName = String(prop.getSubValues().front(), true);
1851 _cache.clear();
1852 return true;
1853 }
1854 }
1855 return false;
1856}
1857
1858bool ObjectIdentifier::isTouched() const
1859{

Callers

nothing calls this directly

Calls 10

getSubValuesMethod · 0.80
StringClass · 0.70
setValueMethod · 0.45
getStringMethod · 0.45
adjustLinkMethod · 0.45
aboutToChangeMethod · 0.45
getNameInDocumentMethod · 0.45
getValueMethod · 0.45
frontMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected