[vlc-commits] skins: missing const

Rémi Denis-Courmont git at videolan.org
Mon Mar 19 21:45:54 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 19 22:45:44 2012 +0200| [f4cb0e4c64540ca67a02f02c5cce0249d78491c0] | committer: Rémi Denis-Courmont

skins: missing const

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

 modules/gui/skins2/src/skin_common.hpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/skins2/src/skin_common.hpp b/modules/gui/skins2/src/skin_common.hpp
index b7addbe..30208fd 100644
--- a/modules/gui/skins2/src/skin_common.hpp
+++ b/modules/gui/skins2/src/skin_common.hpp
@@ -70,7 +70,7 @@ typedef void* vlc_wnd_type;
 /// Wrapper around FromLocale, to avoid the need to call LocaleFree()
 static inline string sFromLocale( const string &rLocale )
 {
-    char *s = FromLocale( rLocale.c_str() );
+    const char *s = FromLocale( rLocale.c_str() );
     string res = s;
     LocaleFree( s );
     return res;
@@ -90,7 +90,7 @@ static inline string sFromWide( const wstring &rWide )
 /// Wrapper around ToLocale, to avoid the need to call LocaleFree()
 static inline string sToLocale( const string &rUTF8 )
 {
-    char *s = ToLocale( rUTF8.c_str() );
+    const char *s = ToLocale( rUTF8.c_str() );
     string res = s;
     LocaleFree( s );
     return res;



More information about the vlc-commits mailing list