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

Ludovic Fauvet git at videolan.org
Fri Jul 19 12:53:24 CEST 2013


vlc/vlc-2.1 | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Jul 15 10:22:55 2013 +0200| [0a56e28d6c777e69d39ad40b19719618f4289785] | committer: Jean-Baptiste Kempf

Qt: QString::fromAscii has been deprecated in Qt5

(cherry picked from commit 0d33f98e4ccc4b0ecf63172d4c08a6ed0b86130b)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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