[vlc-commits] Qt: QString::fromAscii has been deprecated in Qt5

Ludovic Fauvet git at videolan.org
Mon Jul 15 16:56:47 CEST 2013


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Jul 15 10:22:55 2013 +0200| [0d33f98e4ccc4b0ecf63172d4c08a6ed0b86130b] | committer: Ludovic Fauvet

Qt: QString::fromAscii has been deprecated in Qt5

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

 modules/gui/qt4/dialogs_provider.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index 2a15d5b..bf6ecda 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -332,7 +332,7 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg )
         foreach( const QString &file, files )
             p_arg->psz_results[i++] = strdup( qtu( toNativeSepNoSlash( file ) ) );
         if(i == 0)
-            p_intf->p_sys->filepath = QString::fromAscii("");
+            p_intf->p_sys->filepath = QString::fromLatin1("");
         else
             p_intf->p_sys->filepath = qfu( p_arg->psz_results[i-1] );
     }



More information about the vlc-commits mailing list