From 1d0e2f243a526a5ba648e2484f11f1934c99d52a Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sat, 7 May 2022 08:41:45 +0800 Subject: [PATCH] Fix mixed line ending --- src/App/DocumentObject.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App/DocumentObject.cpp b/src/App/DocumentObject.cpp index fa0c215981..667402b811 100644 --- a/src/App/DocumentObject.cpp +++ b/src/App/DocumentObject.cpp @@ -275,7 +275,7 @@ const char *DocumentObject::getNameInDocument() const // to an object that has been removed from the document. In this case we should rather // return 0. //assert(pcNameInDocument); - if (!pcNameInDocument) + if (!pcNameInDocument) return nullptr; return pcNameInDocument->c_str(); } @@ -1056,7 +1056,7 @@ void App::DocumentObject::_addBackLink(DocumentObject* newObj) int DocumentObject::setElementVisible(const char *element, bool visible) { for(auto ext : getExtensionsDerivedFromType()) { int ret = ext->extensionSetElementVisible(element,visible); - if(ret>=0) + if(ret>=0) return ret; } @@ -1066,7 +1066,7 @@ int DocumentObject::setElementVisible(const char *element, bool visible) { int DocumentObject::isElementVisible(const char *element) const { for(auto ext : getExtensionsDerivedFromType()) { int ret = ext->extensionIsElementVisible(element); - if(ret>=0) + if(ret>=0) return ret; } @@ -1259,7 +1259,7 @@ const std::string &DocumentObject::hiddenMarker() { } const char *DocumentObject::hasHiddenMarker(const char *subname) { - if(!subname) + if(!subname) return nullptr; const char *marker = strrchr(subname,'.'); if(!marker)