App: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 12:33:37 -05:00
parent 8c35e7776c
commit f7edc74eee
14 changed files with 76 additions and 38 deletions

View File

@@ -649,7 +649,8 @@ void PropertyLinkList::set1Value(int idx, DocumentObject* const &value) {
DocumentObject *obj = nullptr;
if(idx>=0 && idx<(int)_lValueList.size()) {
obj = _lValueList[idx];
if(obj == value) return;
if(obj == value)
return;
}
if(!value || !value->getNameInDocument())
@@ -2806,7 +2807,8 @@ public:
}
void slotFinishRestoreDocument(const App::Document &doc) {
if(pcDoc) return;
if(pcDoc)
return;
QString fullpath(getFullPath());
if(!fullpath.isEmpty() && getFullPath(doc.getFileName())==fullpath)
attach(const_cast<App::Document*>(&doc));
@@ -2817,7 +2819,8 @@ public:
slotFinishRestoreDocument(doc);
return;
}
if(&doc!=pcDoc) return;
if(&doc!=pcDoc)
return;
QFileInfo info(myPos->first);
// QString path(info.canonicalFilePath());
@@ -2879,7 +2882,8 @@ public:
deinit();
return;
}
if(pcDoc!=&doc) return;
if(pcDoc!=&doc)
return;
std::map<App::PropertyLinkBase*,std::vector<App::PropertyXLink*> > parentLinks;
for(auto link : links) {
link->setFlag(PropertyLinkBase::LinkDetached);