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

Add const qualifier

parent facac0f9
......@@ -30,7 +30,7 @@ VLC_EXPORT( void, LocaleFree, ( const char * ) );
VLC_EXPORT( char *, FromLocale, ( const char * ) );
VLC_EXPORT( char *, ToLocale, ( const char * ) );
VLC_EXPORT( char *, EnsureUTF8, ( char * ) );
VLC_EXPORT( char *, FromUTF32, ( wchar_t * ) );
VLC_EXPORT( char *, FromUTF32, ( const wchar_t * ) );
VLC_EXPORT( char *, __vlc_fix_readdir_charset, ( vlc_object_t *, const char * ) );
#define vlc_fix_readdir_charset(a,b) __vlc_fix_readdir_charset(VLC_OBJECT(a),b)
......
......@@ -379,7 +379,7 @@ char *__vlc_fix_readdir_charset( vlc_object_t *p_this, const char *psz_string )
/**********************************************************************
* UTF32toUTF8: converts UTF-32 to UTF-8
*********************************************************************/
char *UTF32toUTF8( wchar_t *src, size_t len, size_t *newlen )
char *UTF32toUTF8( const wchar_t *src, size_t len, size_t *newlen )
{
char *res, *out;
......@@ -430,10 +430,10 @@ char *UTF32toUTF8( wchar_t *src, size_t len, size_t *newlen )
}
char *FromUTF32( wchar_t *src )
char *FromUTF32( const wchar_t *src )
{
size_t len;
wchar_t *in;
const wchar_t *in;
/* determine the size of the string */
for( len = 1, in = src; GetWBE( in ); len++ )
......
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