PVS: V779 Unreachable code detected. It is possible that an error is present.

This commit is contained in:
wmayer
2019-02-17 20:12:56 +01:00
parent 6cb0b79e4b
commit 2f31efe4c3
4 changed files with 8 additions and 15 deletions

View File

@@ -2810,15 +2810,13 @@ bool SketchObject::isExternalAllowed(App::Document *pDoc, App::DocumentObject *p
*rsn = rlOtherBody;
return false;
}
} else {
}
else {
// cross-part link. Disallow, should be done via shapebinders only
if (rsn)
*rsn = rlOtherPart;
return false;
}
assert(0);
return true;
}
bool SketchObject::isCarbonCopyAllowed(App::Document *pDoc, App::DocumentObject *pObj, bool & xinv, bool & yinv, eReasonList* rsn) const