| 1325 | } |
| 1326 | |
| 1327 | void ObjectIdentifier::setDocumentObjectName(ObjectIdentifier::String&& name, |
| 1328 | bool force, |
| 1329 | ObjectIdentifier::String&& subname, |
| 1330 | bool checkImport) |
| 1331 | { |
| 1332 | if (checkImport) { |
| 1333 | name.checkImport(owner); |
| 1334 | subname.checkImport(owner, nullptr, &name); |
| 1335 | } |
| 1336 | |
| 1337 | documentObjectName = std::move(name); |
| 1338 | documentObjectNameSet = force; |
| 1339 | subObjectName = std::move(subname); |
| 1340 | |
| 1341 | _cache.clear(); |
| 1342 | } |
| 1343 | |
| 1344 | void ObjectIdentifier::setDocumentObjectName(const App::DocumentObject* obj, |
| 1345 | bool force, |
no test coverage detected