valueOf() -> number()

Change-Id: I2832229b01de0cc5a725fd5fe1574a775d0bf12a
This commit is contained in:
Luboš Luňák
2013-08-21 15:37:12 +02:00
parent eb2180caa1
commit 426f4f8136
4 changed files with 6 additions and 6 deletions

View File

@@ -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( " !" ) );
}
}

View File

@@ -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;

View File

@@ -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));
}

View File

@@ -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 );
}
}