App: PR6497 move return statement to new line
This commit is contained in:
@@ -275,7 +275,8 @@ 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) return nullptr;
|
||||
if (!pcNameInDocument)
|
||||
return nullptr;
|
||||
return pcNameInDocument->c_str();
|
||||
}
|
||||
|
||||
@@ -1055,7 +1056,8 @@ void App::DocumentObject::_addBackLink(DocumentObject* newObj)
|
||||
int DocumentObject::setElementVisible(const char *element, bool visible) {
|
||||
for(auto ext : getExtensionsDerivedFromType<DocumentObjectExtension>()) {
|
||||
int ret = ext->extensionSetElementVisible(element,visible);
|
||||
if(ret>=0) return ret;
|
||||
if(ret>=0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return -1;
|
||||
@@ -1064,7 +1066,8 @@ int DocumentObject::setElementVisible(const char *element, bool visible) {
|
||||
int DocumentObject::isElementVisible(const char *element) const {
|
||||
for(auto ext : getExtensionsDerivedFromType<DocumentObjectExtension>()) {
|
||||
int ret = ext->extensionIsElementVisible(element);
|
||||
if(ret>=0) return ret;
|
||||
if(ret>=0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return -1;
|
||||
@@ -1256,7 +1259,8 @@ const std::string &DocumentObject::hiddenMarker() {
|
||||
}
|
||||
|
||||
const char *DocumentObject::hasHiddenMarker(const char *subname) {
|
||||
if(!subname) return nullptr;
|
||||
if(!subname)
|
||||
return nullptr;
|
||||
const char *marker = strrchr(subname,'.');
|
||||
if(!marker)
|
||||
marker = subname;
|
||||
|
||||
Reference in New Issue
Block a user