]> git.sesse.net Git - vlc/commitdiff
Qt4: simplification and correctness.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 26 Sep 2008 02:28:44 +0000 (19:28 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 26 Sep 2008 02:28:44 +0000 (19:28 -0700)
modules/gui/qt4/dialogs_provider.cpp

index 3f861327596951b8f644b8872a17ed4610ce8e47..761f3bc605d99359947a33280047a8b6cc5047b1 100644 (file)
@@ -386,8 +386,7 @@ void DialogsProvider::addFromSimple( bool pl, bool go)
     int i = 0;
     foreach( QString file, files )
     {
-        const char * psz_utf8 = qtu( toNativeSeparators( file ) );
-        playlist_Add( THEPL, psz_utf8, NULL,
+        playlist_Add( THEPL, qtu( toNativeSeparators( file ) ), NULL,
                       go ? ( PLAYLIST_APPEND | ( i ? 0 : PLAYLIST_GO ) |
                                                ( i ? PLAYLIST_PREPARSE : 0 ) )
                          : ( PLAYLIST_APPEND | PLAYLIST_PREPARSE ),