Skip to content

Commit

Permalink
update lingo 2
Browse files Browse the repository at this point in the history
  • Loading branch information
berniev committed May 6, 2022
1 parent e9f8297 commit 38f8a38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/App/Document.cpp
Expand Up @@ -495,7 +495,7 @@ void Document::exportGraphviz(std::ostream& out) const
}
if(!sgraph) {
if(docObj->isDerivedFrom(OriginFeature::getClassTypeId()))
sgraph = GraphList[dynamic_cast<OriginFeature*>(docObj)->getOrigin()];
sgraph = GraphList[static_cast<OriginFeature*>(docObj)->getOrigin()];
}
}
if(!sgraph)
Expand Down Expand Up @@ -2987,15 +2987,15 @@ void Document::getLinksTo(std::set<DocumentObject*> &links,
std::map<const App::DocumentObject*, std::vector<App::DocumentObject*> > linkMap;

for(auto o : !objs.empty()?objs:d->objectArray) {
if (o == obj) continue;
if(o == obj) continue;
auto linked = o;
if (options & GetLinkArrayElement) {
linked = o->getLinkedObject(true, nullptr, Prop_Output | Prop_Hidden, 0);
if(options & GetLinkArrayElement) {
linked = o->getLinkedObject(false);
} else {
auto ext = o->getExtensionByType<LinkBaseExtension>(true);
linked = ext
? ext->getTrueLinkedObject(false, nullptr, 0, true)
: o->getLinkedObject(false, nullptr, false, 0);
: o->getLinkedObject(false);
}
if(linked && linked!=o) {
if(options & GetLinkRecursive)
Expand Down
4 changes: 2 additions & 2 deletions src/App/DocumentObjectPyImp.cpp
Expand Up @@ -718,7 +718,7 @@ PyObject* DocumentObjectPy::getPathsByOutList(PyObject *args)
}
}

PyObject *DocumentObjectPy::getCustomAttributes(const char* attr)
PyObject *DocumentObjectPy::getCustomAttributes(const char* attr) const
{
// Dynamic property is now directly supported in PropertyContainer. So we
// can comment out here and let PropertyContainerPy handle it.
Expand Down Expand Up @@ -886,6 +886,6 @@ Py::Boolean DocumentObjectPy::getNoTouch() const {
return Py::Boolean(getDocumentObjectPtr()->testStatus(ObjectStatus::NoTouch));
}

void DocumentObjectPy::setNoTouch(const Py::Boolean& value) {
void DocumentObjectPy::setNoTouch(Py::Boolean value) {
getDocumentObjectPtr()->setStatus(ObjectStatus::NoTouch,value.isTrue());
}

0 comments on commit 38f8a38

Please sign in to comment.