diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:07:31 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:10:35 +0200 |
commit | 64b993e046f23baaacaff1572b7d2a816588b5ef (patch) | |
tree | 237dce36a1d4787d168a0520839f6aab22500487 /cui/source/customize/cfg.cxx | |
parent | 75f41baab6ce75786a91fe461835ee16a23ec18e (diff) |
finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.
Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
Diffstat (limited to 'cui/source/customize/cfg.cxx')
-rw-r--r-- | cui/source/customize/cfg.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 7e1d9a36defb..6277eaf82fba 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -231,8 +231,8 @@ OUString replaceSixteen( const OUString& str, sal_Int32 nReplacement ) { OUString result( str ); - OUString sixteen = OUString::valueOf( (sal_Int32)16 ); - OUString expected = OUString::valueOf( nReplacement ); + OUString sixteen = OUString::number( 16 ); + OUString expected = OUString::number( nReplacement ); sal_Int32 len = sixteen.getLength(); sal_Int32 index = result.indexOf( sixteen ); @@ -261,12 +261,12 @@ generateCustomName( if ( pos != -1 ) { name = prefix.replaceAt( - pos, placeholder.getLength(), OUString::valueOf( suffix ) ); + pos, placeholder.getLength(), OUString::number( suffix ) ); } else { // no placeholder found so just append the suffix - name = prefix + OUString::valueOf( suffix ); + name = prefix + OUString::number( suffix ); } // now check is there is an already existing entry with this name @@ -307,7 +307,7 @@ generateCustomURL( url += OUString(CUSTOM_TOOLBAR_STR ); // use a random number to minimize possible clash with existing custom toolbars - url += OUString::valueOf( sal_Int64( generateRandomValue() ), 16 ); + url += OUString::number( generateRandomValue(), 16 ); // now check is there is an already existing entry with this url SvxEntries::const_iterator iter = entries->begin(); @@ -339,7 +339,7 @@ generateCustomMenuURL( sal_Int32 suffix = 1 ) { OUString url(CUSTOM_MENU_STR ); - url += OUString::valueOf( suffix ); + url += OUString::number( suffix ); // now check is there is an already existing entry with this url SvxEntries::const_iterator iter = entries->begin(); |