diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:37:12 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:39:22 +0200 |
commit | 426f4f8136ac9eb8cdd2394f4813f04276451be9 (patch) | |
tree | 8756bef53f87044e3617b870364c601fa5f7824a /extensions | |
parent | eb2180caa164a1447ef8df157407d7d21b7d5fff (diff) |
valueOf() -> number()
Change-Id: I2832229b01de0cc5a725fd5fe1574a775d0bf12a
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/update/check/download.cxx | 2 | ||||
-rw-r--r-- | extensions/source/update/check/updatecheck.cxx | 2 | ||||
-rw-r--r-- | extensions/source/update/check/updatecheckconfig.cxx | 2 | ||||
-rw-r--r-- | extensions/source/update/check/updatehdl.cxx | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/extensions/source/update/check/download.cxx b/extensions/source/update/check/download.cxx index 4660da3c97f6..093ef0246bfb 100644 --- a/extensions/source/update/check/download.cxx +++ b/extensions/source/update/check/download.cxx @@ -323,7 +323,7 @@ bool curl_run(const OUString& rURL, OutData& out, const OString& aProxyHost, sal else { aMessage += OString( RTL_CONSTASCII_STRINGPARAM( ":error code = " ) ); - aMessage += aMessage.valueOf( nError ); + aMessage += OString::number( nError ); aMessage += OString( RTL_CONSTASCII_STRINGPARAM( " !" ) ); } } diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx index 782374fec1c9..5eac7a0ffa87 100644 --- a/extensions/source/update/check/updatecheck.cxx +++ b/extensions/source/update/check/updatecheck.cxx @@ -1481,7 +1481,7 @@ UpdateCheck::storeReleaseNote(sal_Int8 nNum, const OUString &rURL) rc = osl::Directory::createPath( aTargetDir ); OUString aFileName = "releasenote" + - OUString::valueOf( (sal_Int32) nNum ) + + OUString::number( nNum ) + ".url"; OUString aFilePath; diff --git a/extensions/source/update/check/updatecheckconfig.cxx b/extensions/source/update/check/updatecheckconfig.cxx index dd88856f38ec..799d6e6e63d9 100644 --- a/extensions/source/update/check/updatecheckconfig.cxx +++ b/extensions/source/update/check/updatecheckconfig.cxx @@ -173,7 +173,7 @@ UpdateCheckROModel::getUpdateEntry(UpdateInfo& rInfo) const for(sal_Int32 n=1; n < 6; ++n ) { OUString aUStr = getStringValue( - OString(aStr + OString::valueOf(n)).getStr()); + OString(aStr + OString::number(n)).getStr()); if( !aUStr.isEmpty() ) rInfo.ReleaseNotes.push_back(ReleaseNote((sal_Int8) n, aUStr)); } diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx index 5abe4c8432f4..86fc8ff10662 100644 --- a/extensions/source/update/check/updatehdl.cxx +++ b/extensions/source/update/check/updatehdl.cxx @@ -629,7 +629,7 @@ OUString UpdateHandler::loadString( const uno::Reference< resource::XResourceBun sal_Int32 nResourceId ) const { OUString sString; - OUString sKey = "string:" + OUString::valueOf( nResourceId ); + OUString sKey = "string:" + OUString::number( nResourceId ); try { @@ -651,7 +651,7 @@ OUString UpdateHandler::substVariables( const OUString &rSource ) const searchAndReplaceAll( sString, "%NEXTVERSION", msNextVersion ); searchAndReplaceAll( sString, "%DOWNLOAD_PATH", msDownloadPath ); searchAndReplaceAll( sString, "%FILE_NAME", msDownloadFile ); - searchAndReplaceAll( sString, "%PERCENT", OUString::valueOf( mnPercent ) ); + searchAndReplaceAll( sString, "%PERCENT", OUString::number( mnPercent ) ); return sString; } @@ -738,7 +738,7 @@ void UpdateHandler::loadStrings() for ( int i=0; i < BUTTON_COUNT; i++ ) { - msButtonIDs[ i ] = "BUTTON_" + OUString::valueOf( (sal_Int32) i ); + msButtonIDs[ i ] = "BUTTON_" + OUString::number( i ); } } |