[vlc-commits] qt: simple_preferences: use size_t for index
Alexandre Janniaux
git at videolan.org
Sat Apr 11 11:07:36 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Apr 9 13:30:05 2020 +0200| [c86d7d6f6c49a5ac1a232248a27c30ec8fa27e53] | 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=c86d7d6f6c49a5ac1a232248a27c30ec8fa27e53
---
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