[Libreoffice-commits] core.git: extensions/source

Luboš Luňák l.lunak at suse.cz
Wed Aug 21 06:39:51 PDT 2013


 extensions/source/update/check/download.cxx          |    2 +-
 extensions/source/update/check/updatecheck.cxx       |    2 +-
 extensions/source/update/check/updatecheckconfig.cxx |    2 +-
 extensions/source/update/check/updatehdl.cxx         |    6 +++---
 4 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 426f4f8136ac9eb8cdd2394f4813f04276451be9
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Wed Aug 21 15:37:12 2013 +0200

    valueOf() -> number()
    
    Change-Id: I2832229b01de0cc5a725fd5fe1574a775d0bf12a

diff --git a/extensions/source/update/check/download.cxx b/extensions/source/update/check/download.cxx
index 4660da3..093ef02 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 782374f..5eac7a0 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 dd88856..799d6e6 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 5abe4c8..86fc8ff 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 );
     }
 }
 


More information about the Libreoffice-commits mailing list