vlc | branch: master | Alexandre Janniaux <aja...@videolabs.io> | Thu Apr  9 
13:30:05 2020 +0200| [cc784353f5db70d1b1fcc761fa5f080f6704f891] | committer: 
Alexandre Janniaux

qt: simple_preferences: use size_t for index

Avoid comparison between signed and unsigned integer on Windows.

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

 modules/gui/qt/dialogs/preferences/simple_preferences.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/dialogs/preferences/simple_preferences.cpp 
b/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
index 3538693320..560fc78e6d 100644
--- a/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
+++ b/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
@@ -704,7 +704,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget 
*_parent,
 #ifndef _WIN32
             ui.langBox->hide();
 #else
-            for( int i = 0; i < ARRAY_SIZE( language_map ); i++)
+            for( size_t i = 0; i < ARRAY_SIZE( language_map ); i++)
                 ui.langCombo->addItem( qfu( language_map[i].name ), 
language_map[i].iso );
             CONNECT( ui.langCombo, currentIndexChanged( int ), this, 
langChanged( int ) );
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to