[vlc-commits] qt: simple_preferences: use size_t for index

Alexandre Janniaux git at videolan.org
Sat Apr 11 09:13:41 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Apr  9 13:30:05 2020 +0200| [68d9faade937ef6d9765e13305f07520be509049] | 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=68d9faade937ef6d9765e13305f07520be509049
---

 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 ) );
 



More information about the vlc-commits mailing list