[vlc-commits] macosx: Fix return type to not discard const qualifier

Marvin Scholz git at videolan.org
Thu Nov 10 16:42:46 CET 2016


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Nov 10 16:41:31 2016 +0100| [665382ab08f9b82e67eb635d596c5f5531e753c8] | committer: Marvin Scholz

macosx: Fix return type to not discard const qualifier

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

 modules/gui/macosx/simple_prefs.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index 15182bf..9b3057e 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -437,7 +437,7 @@ create_toolbar_item(NSString *itemIdent, NSString *name, NSString *desc, NSStrin
 
 /* TODO: move this part to core */
 #define config_GetLabel(a,b) __config_GetLabel(VLC_OBJECT(a),b)
-static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_name)
+static inline const char * __config_GetLabel(vlc_object_t *p_this, const char *psz_name)
 {
     module_config_t *p_config;
 



More information about the vlc-commits mailing list