Fix mixed line ending

This commit is contained in:
Zheng, Lei
2022-05-07 08:41:45 +08:00
committed by wwmayer
parent 971743a2e9
commit 1d0e2f243a

View File

@@ -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<DocumentObjectExtension>()) {
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<DocumentObjectExtension>()) {
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)