AutomatableModel: eliminate return statement

There's no need for the return statement anymore when changing the
branching logic.
This commit is contained in:
Tobias Doerffel
2014-03-04 00:05:43 +01:00
parent 21b5396253
commit 8363e262cf

View File

@@ -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() );
}