1
0
Fork 0

src/Autopilot/digitalcomponent.cxx: fixed misleading indentation.

This commit is contained in:
Julian Smith 2020-12-30 13:49:00 +00:00
parent b7d7edc49e
commit ae1c4afea6

View file

@ -93,15 +93,15 @@ bool DigitalComponent::configure( SGPropertyNode& cfg_node,
if( (n = cfg_node.getNode("inverted")) != NULL )
o->setInverted( n->getBoolValue() );
if( (n = cfg_node.getNode("property")) != NULL ) {
const auto trimmed = simgear::strutils::strip(n->getStringValue());
o->setProperty( prop_root.getNode(trimmed, true) );
}
if( cfg_node.nChildren() == 0 ) {
const auto trimmed = simgear::strutils::strip(cfg_node.getStringValue());
o->setProperty( prop_root.getNode(trimmed, true) );
}
if( (n = cfg_node.getNode("property")) != NULL ) {
const auto trimmed = simgear::strutils::strip(n->getStringValue());
o->setProperty( prop_root.getNode(trimmed, true) );
}
if( cfg_node.nChildren() == 0 ) {
const auto trimmed = simgear::strutils::strip(cfg_node.getStringValue());
o->setProperty( prop_root.getNode(trimmed, true) );
}
return true;
}