Commit f4cb0e4c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

skins: missing const

parent 5ed05632
...@@ -70,7 +70,7 @@ typedef void* vlc_wnd_type; ...@@ -70,7 +70,7 @@ typedef void* vlc_wnd_type;
/// Wrapper around FromLocale, to avoid the need to call LocaleFree() /// Wrapper around FromLocale, to avoid the need to call LocaleFree()
static inline string sFromLocale( const string &rLocale ) static inline string sFromLocale( const string &rLocale )
{ {
char *s = FromLocale( rLocale.c_str() ); const char *s = FromLocale( rLocale.c_str() );
string res = s; string res = s;
LocaleFree( s ); LocaleFree( s );
return res; return res;
...@@ -90,7 +90,7 @@ static inline string sFromWide( const wstring &rWide ) ...@@ -90,7 +90,7 @@ static inline string sFromWide( const wstring &rWide )
/// Wrapper around ToLocale, to avoid the need to call LocaleFree() /// Wrapper around ToLocale, to avoid the need to call LocaleFree()
static inline string sToLocale( const string &rUTF8 ) static inline string sToLocale( const string &rUTF8 )
{ {
char *s = ToLocale( rUTF8.c_str() ); const char *s = ToLocale( rUTF8.c_str() );
string res = s; string res = s;
LocaleFree( s ); LocaleFree( s );
return res; return res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment