]> git.sesse.net Git - vlc/commitdiff
qt4: remove totology.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 15 Mar 2009 20:03:25 +0000 (21:03 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 15 Mar 2009 20:03:25 +0000 (21:03 +0100)
modules/gui/qt4/components/playlist/playlist_model.cpp

index 3dfaf18b08cec96c5cbec7764895a24ed9ad3958..dc68a2344b446eb5f22f42ed510fe0f46113b799 100644 (file)
@@ -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 )
 {