From: RĂ©mi Duraffort Date: Sun, 15 Mar 2009 20:03:25 +0000 (+0100) Subject: qt4: remove totology. X-Git-Tag: 1.0.0-pre1~72 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=095555eb31a4527064100b99c0f340811078fb9c;p=vlc qt4: remove totology. --- diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp index 3dfaf18b08..dc68a2344b 100644 --- a/modules/gui/qt4/components/playlist/playlist_model.cpp +++ b/modules/gui/qt4/components/playlist/playlist_model.cpp @@ -416,18 +416,15 @@ QStringList PLModel::selectedURIs() bool PLModel::hasRandom() { - if( var_GetBool( p_playlist, "random" ) ) return true; - return false; + return var_GetBool( p_playlist, "random" ); } bool PLModel::hasRepeat() { - if( var_GetBool( p_playlist, "repeat" ) ) return true; - return false; + return var_GetBool( p_playlist, "repeat" ); } bool PLModel::hasLoop() { - if( var_GetBool( p_playlist, "loop" ) ) return true; - return false; + return var_GetBool( p_playlist, "loop" ); } void PLModel::setLoop( bool on ) {