From 5b935e5c76b9fdc353b73dcb47540f03ef15dc22 Mon Sep 17 00:00:00 2001 From: Christophe Mutricy Date: Tue, 15 May 2007 21:54:26 +0000 Subject: [PATCH] Const police --- include/vlc_config_cat.h | 4 ++-- modules/gui/qt4/components/complete_preferences.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/vlc_config_cat.h b/include/vlc_config_cat.h index 931fc52afc..f1f0289fae 100644 --- a/include/vlc_config_cat.h +++ b/include/vlc_config_cat.h @@ -295,7 +295,7 @@ static struct config_category_t categories_array[] = { -1, NULL, NULL } }; -static inline char *config_CategoryNameGet( int i_value ) +static inline const char *config_CategoryNameGet( int i_value ) { int i = 0 ; while( categories_array[i].psz_name != NULL ) @@ -309,7 +309,7 @@ static inline char *config_CategoryNameGet( int i_value ) return NULL; } -static inline char *config_CategoryHelpGet( int i_value ) +static inline const char *config_CategoryHelpGet( int i_value ) { int i = 0 ; while( categories_array[i].psz_help != NULL ) diff --git a/modules/gui/qt4/components/complete_preferences.cpp b/modules/gui/qt4/components/complete_preferences.cpp index 6b44f8bbf3..b77ce3c272 100644 --- a/modules/gui/qt4/components/complete_preferences.cpp +++ b/modules/gui/qt4/components/complete_preferences.cpp @@ -97,7 +97,7 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) : for (size_t i = 0; i < p_module->confsize; i++) { const module_config_t *p_item = p_module->p_config + i; - char *psz_help; + const char *psz_help; QIcon icon; switch( p_item->i_type ) { -- 2.39.2