AutomatableModel: eliminate return statement
There's no need for the return statement anymore when changing the branching logic.
This commit is contained in:
@@ -161,10 +161,8 @@ void AutomatableModel::loadSettings( const QDomElement& element, const QString&
|
||||
{
|
||||
changeID( node.toElement().attribute( "id" ).toInt() );
|
||||
setValue( node.toElement().attribute( "value" ).toFloat() );
|
||||
return;
|
||||
}
|
||||
|
||||
if( element.hasAttribute( name ) )
|
||||
else if( element.hasAttribute( name ) )
|
||||
{
|
||||
setInitValue( element.attribute( name ).toFloat() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user