[vlc-devel] commit: [QT] cosmetic, use regexp instead of multiple removes in simple preferences ( Ilkka Ollakka )

git version control git at videolan.org
Mon Dec 15 12:49:21 CET 2008


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Dec 15 13:48:22 2008 +0200| [b3da319e29b52d3849d0c3c33d1156a3e532fa67] | committer: Ilkka Ollakka 

[QT] cosmetic, use regexp instead of multiple removes in simple preferences

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b3da319e29b52d3849d0c3c33d1156a3e532fa67
---

 modules/gui/qt4/components/simple_preferences.cpp |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index d2da05c..b70d52f 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -670,10 +670,7 @@ void SPrefsPanel::apply()
                    that we have to remove */
                 if( !b_normChecked )
                 {
-                    /* Ugly :D */
-                    qs_filter.remove( "volnorm:" );
-                    qs_filter.remove( ":volnorm" );
-                    qs_filter.remove( "volnorm" );
+                    qs_filter.remove( QRegExp(":?volnorm:?") );
                 }
             }
             else /* qs_filter not empty, but doesn't have volnorm inside */




More information about the vlc-devel mailing list