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

Method relabeledDocument

src/App/ObjectIdentifier.cpp:518–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518bool ObjectIdentifier::relabeledDocument(ExpressionVisitor& v,
519 const std::string& oldLabel,
520 const std::string& newLabel)
521{
522 if (documentNameSet && documentName.isRealString() && documentName.getString() == oldLabel) {
523 v.aboutToChange();
524 documentName = String(newLabel, true);
525 _cache.clear();
526 return true;
527 }
528 return false;
529}
530
531void ObjectIdentifier::getSubPathStr(std::ostream& s,
532 const ResolveResults& result,

Callers

nothing calls this directly

Calls 5

isRealStringMethod · 0.80
StringClass · 0.70
getStringMethod · 0.45
aboutToChangeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected