From 8363e262cf4f18611d2a983037fa8368cb25a863 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Tue, 4 Mar 2014 00:05:43 +0100 Subject: [PATCH] AutomatableModel: eliminate return statement There's no need for the return statement anymore when changing the branching logic. --- src/core/AutomatableModel.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/AutomatableModel.cpp b/src/core/AutomatableModel.cpp index fecef621c..eb963fa2c 100644 --- a/src/core/AutomatableModel.cpp +++ b/src/core/AutomatableModel.cpp @@ -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() ); }