[vlc-devel] commit: qt4: remove totology. ( Rémi Duraffort )
git version control
git at videolan.org
Sun Mar 15 21:03:51 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Mar 15 21:03:25 2009 +0100| [095555eb31a4527064100b99c0f340811078fb9c] | committer: Rémi Duraffort
qt4: remove totology.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=095555eb31a4527064100b99c0f340811078fb9c
---
.../gui/qt4/components/playlist/playlist_model.cpp | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 3dfaf18..dc68a23 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 )
{
More information about the vlc-devel
mailing list