Kaydet (Commit) ba083e5c authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: use number() instead of valueOf()

Change-Id: I4a464a8e6448d1f9b1be820f11e643930682bcdb
üst a463f74e
...@@ -94,11 +94,11 @@ OUString SAL_CALL getWinCPFromLocaleId( LCID lcid, LCTYPE lctype ) ...@@ -94,11 +94,11 @@ OUString SAL_CALL getWinCPFromLocaleId( LCID lcid, LCTYPE lctype )
// set an default value // set an default value
if ( LOCALE_IDEFAULTCODEPAGE == lctype ) if ( LOCALE_IDEFAULTCODEPAGE == lctype )
{ {
winCP = OUString::valueOf( static_cast<sal_Int32>(GetOEMCP( )), 10 ); winCP = OUString::number( static_cast<sal_Int32>(GetOEMCP( )) );
} }
else if ( LOCALE_IDEFAULTANSICODEPAGE == lctype ) else if ( LOCALE_IDEFAULTANSICODEPAGE == lctype )
{ {
winCP = OUString::valueOf( static_cast<sal_Int32>(GetACP( )), 10 ); winCP = OUString::number( static_cast<sal_Int32>(GetACP( )) );
} }
else else
OSL_ASSERT( sal_False ); OSL_ASSERT( sal_False );
...@@ -180,7 +180,7 @@ OUString SAL_CALL cptostr( sal_uInt32 codepage ) ...@@ -180,7 +180,7 @@ OUString SAL_CALL cptostr( sal_uInt32 codepage )
{ {
OSL_ASSERT( IsValidCodePage( codepage ) ); OSL_ASSERT( IsValidCodePage( codepage ) );
return OUString::valueOf( static_cast<sal_Int64>( codepage ), 10 ); return OUString::number( static_cast<sal_Int64>( codepage ) );
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
......
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