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

@@ -297,11 +297,13 @@ int ObjectIdentifier::numSubComponents() const
bool ObjectIdentifier::verify(const App::Property &prop, bool silent) const {
ResolveResults result(*this);
if(components.size() - result.propertyIndex != 1) {
if(silent) return false;
if(silent)
return false;
FC_THROWM(Base::ValueError,"Invalid property path: single component expected");
}
if(!components[result.propertyIndex].isSimple()) {
if(silent) return false;
if(silent)
return false;
FC_THROWM(Base::ValueError,"Invalid property path: simple component expected");
}
const std::string &name = components[result.propertyIndex].getName();
@@ -310,7 +312,8 @@ bool ObjectIdentifier::verify(const App::Property &prop, bool silent) const {
if((isAddress && addr.toString(CellAddress::Cell::ShowRowColumn) != prop.getName()) ||
(!isAddress && name!=prop.getName()))
{
if(silent) return false;
if(silent)
return false;
FC_THROWM(Base::ValueError,"Invalid property path: name mismatch");
}
return true;