Kaydet (Commit) 9e6b5018 authored tarafından Noel Grandin's avatar Noel Grandin

sal_uChar is deprecated

Change-Id: I073dde24498b2a0f3f6edd3d502134a25dfac71c
üst e355661f
...@@ -231,12 +231,12 @@ void ScInterpreter::ScEncodeURL() ...@@ -231,12 +231,12 @@ void ScInterpreter::ScEncodeURL()
for ( int i = 0; i < nLen; i++ ) for ( int i = 0; i < nLen; i++ )
{ {
sal_Char c = aUtf8Str[ i ]; sal_Char c = aUtf8Str[ i ];
if ( rtl::isAsciiAlphanumeric( static_cast<sal_uChar>( c ) ) || c == '-' || c == '_' ) if ( rtl::isAsciiAlphanumeric( static_cast<unsigned char>( c ) ) || c == '-' || c == '_' )
aUrlBuf.append( c ); aUrlBuf.append( c );
else else
{ {
aUrlBuf.append( '%' ); aUrlBuf.append( '%' );
aUrlBuf.append( OString::number( static_cast<sal_uChar>( c ), 16 ).toAsciiUpperCase() ); aUrlBuf.append( OString::number( static_cast<unsigned char>( c ), 16 ).toAsciiUpperCase() );
} }
} }
PushString( OUString::fromUtf8( aUrlBuf.makeStringAndClear() ) ); PushString( OUString::fromUtf8( aUrlBuf.makeStringAndClear() ) );
......
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