[PATCH] Replaced O[U]String::valueOf( static_cast<> ) with O[U]Strin...

Jean-Noël Rouvignac (via_Code_Review) gerrit at gerrit.libreoffice.org
Sun Jan 20 04:57:04 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1784

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/84/1784/1

Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()

Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de
---
M basic/source/basmgr/basmgr.cxx
M basic/source/classes/sb.cxx
M basic/source/sbx/sbxobj.cxx
M configmgr/source/writemodfile.cxx
M connectivity/source/drivers/dbase/DIndex.cxx
M connectivity/source/drivers/dbase/DTable.cxx
M cui/source/tabpages/chardlg.cxx
M cui/source/tabpages/numfmt.cxx
M cui/source/tabpages/numpages.cxx
M cui/source/tabpages/tpcolor.cxx
M editeng/source/items/paraitem.cxx
M filter/source/msfilter/msdffimp.cxx
M filter/source/msfilter/msocximex.cxx
M filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
M idl/source/cmptools/lex.cxx
M idl/source/objects/basobj.cxx
M idl/source/objects/bastype.cxx
M idl/source/objects/slot.cxx
M idl/source/objects/types.cxx
M l10ntools/source/export.cxx
M oox/source/dump/dumperbase.cxx
M oox/source/export/vmlexport.cxx
M oox/source/ole/olehelper.cxx
M reportdesign/source/core/api/FixedLine.cxx
M rsc/source/parser/erscerr.cxx
M sc/source/core/data/dpdimsave.cxx
M sc/source/core/data/dptabres.cxx
M sc/source/core/tool/interpr1.cxx
M sc/source/filter/excel/excimp8.cxx
M sc/source/filter/excel/xecontent.cxx
M sc/source/filter/excel/xeextlst.cxx
M sc/source/filter/excel/xestyle.cxx
M sc/source/filter/excel/xlpivot.cxx
M sc/source/filter/excel/xltools.cxx
M sc/source/filter/html/htmlexp.cxx
M sc/source/filter/oox/numberformatsbuffer.cxx
M sc/source/filter/starcalc/scflt.cxx
M sc/source/filter/xml/xmlexprt.cxx
M sc/source/ui/condformat/colorformat.cxx
M sc/source/ui/condformat/condformatdlgentry.cxx
M sd/source/core/drawdoc4.cxx
M sd/source/filter/eppt/pptexsoundcollection.cxx
M sd/source/filter/ppt/pptin.cxx
M sd/source/ui/animations/CustomAnimationCreateDialog.cxx
M sd/source/ui/dlg/copydlg.cxx
M sd/source/ui/func/fuprobjs.cxx
M sdext/source/minimizer/configurationaccess.cxx
M stoc/source/simpleregistry/simpleregistry.cxx
M svl/source/items/aeitem.cxx
M svl/source/items/cintitem.cxx
M svl/source/items/intitem.cxx
M svl/source/items/rngitem_inc.cxx
M svtools/source/brwbox/datwin.cxx
M svtools/source/control/calendar.cxx
M svtools/source/control/ruler.cxx
M svtools/source/misc/transfer.cxx
M svtools/source/uno/wizard/wizardshell.cxx
M svx/source/dialog/compressgraphicdialog.cxx
M svx/source/svdraw/svdattr.cxx
M svx/source/svdraw/svdmark.cxx
M svx/source/svdraw/svdmrkv.cxx
M svx/source/svdraw/svdobj.cxx
M svx/source/svdraw/svdopath.cxx
M svx/source/xoutdev/xattr2.cxx
M sw/source/core/fields/docufld.cxx
M sw/source/core/fields/flddat.cxx
M sw/source/filter/html/htmlftn.cxx
M sw/source/filter/ww8/docxattributeoutput.cxx
M sw/source/ui/dialog/wordcountdialog.cxx
M sw/source/ui/uiview/view2.cxx
M sw/source/ui/utlui/attrdesc.cxx
M tools/bootstrp/mkunroll/mkunroll.cxx
M tools/source/rc/resmgr.cxx
M ucb/workben/ucb/ucbdemo.cxx
M unotest/source/cpp/toabsolutefileurl.cxx
M unotest/source/cpp/uniquepipename.cxx
M vcl/generic/print/common_gfx.cxx
M vcl/source/window/builder.cxx
M writerfilter/source/doctok/WW8ResourceModelImpl.cxx
M writerfilter/source/rtftok/rtfvalue.cxx
M xmloff/source/draw/shapeexport2.cxx
M xmlreader/source/xmlreader.cxx
82 files changed, 188 insertions(+), 197 deletions(-)



diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index ec9c9d6..961b5ed 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -1521,7 +1521,7 @@
     else
     {
         StringErrorInfo* pErrInf = new StringErrorInfo( ERRCODE_BASMGR_LIBLOAD, OUString(), ERRCODE_BUTTON_OK );
-        aErrors.push_back(BasicError(*pErrInf, BASERR_REASON_LIBNOTFOUND, OUString::valueOf(static_cast<sal_Int32>(nLib))));
+        aErrors.push_back(BasicError(*pErrInf, BASERR_REASON_LIBNOTFOUND, OUString::number(nLib)));
     }
     return bDone;
 }
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index 12cb5da..a269c74 100644
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -1663,7 +1663,7 @@
     }
     else if( nOldID != 0 )
     {
-        OUString aStdMsg = "Fehler " + OUString::valueOf(static_cast<sal_Int32>(nOldID)) +
+        OUString aStdMsg = "Fehler " + OUString::number(nOldID) +
                            ": Kein Fehlertext verfuegbar!";
         GetSbData()->aErrMsg = aStdMsg;
     }
diff --git a/basic/source/sbx/sbxobj.cxx b/basic/source/sbx/sbxobj.cxx
index 2ce01fc..69f9920 100644
--- a/basic/source/sbx/sbxobj.cxx
+++ b/basic/source/sbx/sbxobj.cxx
@@ -830,7 +830,7 @@
           << ( aNameStr.isEmpty() ?  "<unnamed>" : aNameStr.getStr() ) << "', "
           << "of class '" << aClassNameStr.getStr() << "', "
           << "counts "
-          << rtl::OString::valueOf(static_cast<sal_Int64>(GetRefCount())).getStr()
+          << OString::number(GetRefCount()).getStr()
           << " refs, ";
     if ( GetParent() )
     {
diff --git a/configmgr/source/writemodfile.cxx b/configmgr/source/writemodfile.cxx
index 64b1e11..58d16ef 100644
--- a/configmgr/source/writemodfile.cxx
+++ b/configmgr/source/writemodfile.cxx
@@ -174,7 +174,7 @@
 }
 
 void writeValueContent(oslFileHandle handle, sal_Int16 value) {
-    writeData(handle, rtl::OString::valueOf(static_cast< sal_Int32 >(value)));
+    writeData(handle, OString::number(value));
 }
 
 void writeValueContent(oslFileHandle handle, sal_Int32 value) {
@@ -201,7 +201,7 @@
             writeData(
                 handle, RTL_CONSTASCII_STRINGPARAM("<unicode oor:scalar=\""));
             writeData(
-                handle, rtl::OString::valueOf(static_cast< sal_Int32 >(c)));
+                handle, OString::number(c));
             writeData(handle, RTL_CONSTASCII_STRINGPARAM("\"/>"));
             i = j + 1;
         } else if (c == '\x0D') {
diff --git a/connectivity/source/drivers/dbase/DIndex.cxx b/connectivity/source/drivers/dbase/DIndex.cxx
index 7e290b9..0cb4630 100644
--- a/connectivity/source/drivers/dbase/DIndex.cxx
+++ b/connectivity/source/drivers/dbase/DIndex.cxx
@@ -395,7 +395,7 @@
     while (aNewEntry.isEmpty())
     {
         aNewEntry = rtl::OString(RTL_CONSTASCII_STRINGPARAM("NDX"));
-        aNewEntry += rtl::OString::valueOf(static_cast<sal_Int32>(++nSuffix));
+        aNewEntry += OString::number(++nSuffix);
         for (sal_uInt16 i = 0; i < aInfFile.GetKeyCount(); i++)
         {
             aKeyName = aInfFile.GetKeyName(i);
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index 499b238..7ee5ed5 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -1956,7 +1956,7 @@
                     if (!m_pMemoStream || !WriteMemo(thisColVal, nBlockNo))
                         break;
 
-                    rtl::OString aBlock(rtl::OString::valueOf(static_cast<sal_Int32>(nBlockNo)));
+                    rtl::OString aBlock(OString::number(nBlockNo));
                     //align aBlock at the right of a nLen sequence, fill to the left with '0'
                     rtl::OStringBuffer aStr;
                     comphelper::string::padToLength(aStr, nLen - aBlock.getLength(), '0');
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index 123079b..9d444d4 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -3256,15 +3256,12 @@
 
 void SvxCharPositionPage::FillUserData()
 {
-    const sal_Unicode cTok = ';';
+    const OUString cTok( ";" );
 
-    OUString sUser( OUString::valueOf( static_cast<sal_Int32>(m_nSuperEsc)) );
-    sUser += OUString( cTok );
-    sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSubEsc) );
-    sUser += OUString (cTok );
-    sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSuperProp) );
-    sUser += OUString ( cTok );
-    sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSubProp) );
+    OUString sUser = OUString::number( m_nSuperEsc )  + cTok +
+                     OUString::number( m_nSubEsc )    + cTok +
+                     OUString::number( m_nSuperProp ) + cTok +
+                     OUString::number( m_nSubProp );
     SetUserData( sUser );
 }
 
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index 03dcc8d..4dad881 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -972,8 +972,8 @@
             m_pEdLeadZeroes->Enable();
             m_pBtnNegRed->Enable();
             m_pBtnThousand->Enable();
-            m_pEdDecimals->SetText( OUString::valueOf( static_cast<sal_Int32>(nDecimals) ) );
-            m_pEdLeadZeroes->SetText( OUString::valueOf( static_cast<sal_Int32>(nZeroes) ) );
+            m_pEdDecimals->SetText( OUString::number( nDecimals ) );
+            m_pEdLeadZeroes->SetText( OUString::number( nZeroes ) );
             m_pBtnNegRed->Check( bNegRed );
             m_pBtnThousand->Check( bThousand );
             break;
@@ -994,8 +994,8 @@
             m_pEdLeadZeroes->Disable();
             m_pBtnNegRed->Disable();
             m_pBtnThousand->Disable();
-            m_pEdDecimals->SetText( OUString::valueOf( static_cast<sal_Int32>(0) ) );
-            m_pEdLeadZeroes->SetText( OUString::valueOf( static_cast<sal_Int32>(0) ) );
+            m_pEdDecimals->SetText( OUString::number( 0 ) );
+            m_pEdLeadZeroes->SetText( OUString::number( 0 ) );
             m_pBtnNegRed->Check( sal_False );
             m_pBtnThousand->Check( sal_False );
     }
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index b7bd072..8e9fc4a 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -1266,7 +1266,7 @@
     if(!m_pLevelLB->GetEntryCount())
     {
         for(sal_uInt16 i = 1; i <= pSaveNum->GetLevelCount(); i++)
-            m_pLevelLB->InsertEntry( OUString::valueOf(static_cast<sal_Int32>(i)));
+            m_pLevelLB->InsertEntry( OUString::number(i));
         if(pSaveNum->GetLevelCount() > 1)
         {
             OUString sEntry( "1 - " );
@@ -3018,7 +3018,7 @@
     if(!m_pLevelLB->GetEntryCount())
     {
         for(sal_uInt16 i = 1; i <= pSaveNum->GetLevelCount(); i++)
-            m_pLevelLB->InsertEntry( OUString::valueOf(static_cast<sal_Int32>(i)) );
+            m_pLevelLB->InsertEntry( OUString::number(i) );
         if(pSaveNum->GetLevelCount() > 1)
         {
             OUString sEntry( "1 - " );
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index 9f4f98d..8968997 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -1223,7 +1223,7 @@
 void SvxColorTabPage::FillUserData()
 {
     // the color model is saved in the Ini-file
-    SetUserData( OUString::valueOf( static_cast<sal_Int32>(eCM) ) );
+    SetUserData( OUString::number( eCM ) );
 }
 
 //------------------------------------------------------------------------
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx
index b3c13e3..f430dc9 100644
--- a/editeng/source/items/paraitem.cxx
+++ b/editeng/source/items/paraitem.cxx
@@ -878,7 +878,7 @@
     XubString aStr;
 
     aStr += sal_Unicode( '(' );
-    aStr += rtl::OUString::valueOf(static_cast<sal_Int32>(nTabPos));
+    aStr += OUString::number(nTabPos);
     aStr += cpDelim;
     aStr += EE_RESSTR(RID_SVXITEMS_TAB_ADJUST_BEGIN + (sal_uInt16)eAdjustment);
 
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 8fa491a..17c55e2 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -262,7 +262,7 @@
             if ( IsProperty( DFF_Prop_adjustValue ) || IsProperty( DFF_Prop_pVertices ) )
             {
                 pOut->WriteLine( "" );
-                OString aString("ShapeId: " + OString::valueOf(static_cast<sal_Int32>(nShapeId)));
+                OString aString("ShapeId: " + OString::number(nShapeId));
                 pOut->WriteLine(aString);
             }
             for ( sal_uInt32 i = DFF_Prop_adjustValue; i <= DFF_Prop_adjust10Value; i++ )
@@ -287,13 +287,13 @@
                         if ( nLen )
                         {
                             pOut->WriteLine( "" );
-                            OStringBuffer aDesc("Property:" + OString::valueOf(static_cast<sal_Int32>(i)) +
+                            OStringBuffer aDesc("Property:" + OString::number(i) +
                                                 "  Size:" + OString::valueOf(nLen));
                             pOut->WriteLine(aDesc.makeStringAndClear());
                             sal_Int16   nNumElem, nNumElemMem, nNumSize;
                             rIn >> nNumElem >> nNumElemMem >> nNumSize;
-                            aDesc.append("Entries: " + OString::valueOf(static_cast<sal_Int32>(nNumElem)) +
-                                         "  Size:" + OString::valueOf(static_cast<sal_Int32>(nNumSize)));
+                            aDesc.append("Entries: " + OString::number(nNumElem) +
+                                         "  Size:" + OString::number(nNumSize));
                             pOut->WriteLine(aDesc.makeStringAndClear());
                             if ( nNumSize < 0 )
                                 nNumSize = ( ( -nNumSize ) >> 2 );
@@ -331,7 +331,7 @@
                     }
                     else
                     {
-                        OString aString("Property" + OString::valueOf(static_cast<sal_Int32>(i)) +
+                        OString aString("Property" + OString::number(i) +
                                         ":" + OString::valueOf(static_cast<sal_Int32>(GetPropertyValue(i))));
                         pOut->WriteLine(aString);
                     }
diff --git a/filter/source/msfilter/msocximex.cxx b/filter/source/msfilter/msocximex.cxx
index 6816b87..09f25e0 100644
--- a/filter/source/msfilter/msocximex.cxx
+++ b/filter/source/msfilter/msocximex.cxx
@@ -112,7 +112,7 @@
             while( xNameCont->hasByName( sName ) )
             {
                 sName = sWW8_form;
-                sName += OUString::valueOf( static_cast<sal_Int32>(++n) );
+                sName += OUString::number( ++n );
             }
 
             const uno::Reference< lang::XMultiServiceFactory > &rServiceFactory
diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
index 7f16621..a2bf034 100644
--- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
@@ -418,7 +418,7 @@
     if( nDefaultNumber )
     {
         aInterfaceName += OUString( sal_Unicode( ' ' ) );
-        aInterfaceName += OUString::valueOf( static_cast<sal_Int32>(nDefaultNumber) );
+        aInterfaceName += OUString::number( nDefaultNumber );
     }
 
     return aInterfaceName;
@@ -922,7 +922,7 @@
         if( nFilters > 0 )
         {
             aMsg = RESIDSTR(STR_FILTERS_HAVE_BEEN_SAVED);
-            aMsg = aMsg.replaceFirst( sPlaceholder, OUString::valueOf( static_cast<sal_Int32>(nFilters) ) );
+            aMsg = aMsg.replaceFirst( sPlaceholder, OUString::number( nFilters ) );
             aMsg = aMsg.replaceFirst( sPlaceholder, aURL.GetName() );
         }
         else
@@ -997,7 +997,7 @@
         else
         {
             aMsg = RESIDSTR(STR_FILTERS_INSTALLED);
-            aMsg = aMsg.replaceFirst( sPlaceholder, OUString::valueOf( static_cast<sal_Int32>(nFilters) ) );
+            aMsg = aMsg.replaceFirst( sPlaceholder, OUString::number( nFilters ) );
         }
 
         InfoBox aBox(this, aMsg );
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx
index f3f9252..e01cabb 100644
--- a/idl/source/cmptools/lex.cxx
+++ b/idl/source/cmptools/lex.cxx
@@ -36,7 +36,7 @@
             aStr = aString;
             break;
         case SVTOKEN_INTEGER:
-            aStr = rtl::OString::valueOf(static_cast<sal_Int64>(nLong));
+            aStr = OString::number(nLong);
             break;
         case SVTOKEN_STRING:
             aStr = aString;
diff --git a/idl/source/objects/basobj.cxx b/idl/source/objects/basobj.cxx
index fc0f19d..f4d6465 100644
--- a/idl/source/objects/basobj.cxx
+++ b/idl/source/objects/basobj.cxx
@@ -561,9 +561,9 @@
     rOutStm << "uuid(" << rtl::OUStringToOString(GetUUId().GetHexName(), RTL_TEXTENCODING_UTF8).getStr() << ")," << endl;
     WriteTab( rOutStm, nTab );
     rOutStm << "version("
-        << rtl::OString::valueOf(static_cast<sal_Int32>(aVersion.GetMajorVersion())).getStr()
+        << OString::number(aVersion.GetMajorVersion()).getStr()
         << '.'
-        << rtl::OString::valueOf(static_cast<sal_Int32>(aVersion.GetMinorVersion())).getStr()
+        << OString::number(aVersion.GetMinorVersion()).getStr()
         << ")," << endl;
 }
 
diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx
index 6f1fdf1..0d7510e 100644
--- a/idl/source/objects/bastype.cxx
+++ b/idl/source/objects/bastype.cxx
@@ -413,9 +413,9 @@
 sal_Bool SvVersion::WriteSvIdl( SvStream & rOutStm )
 {
     rOutStm << SvHash_Version()->GetName().getStr() << '('
-        << rtl::OString::valueOf(static_cast<sal_Int32>(nMajorVersion)).getStr()
+        << OString::number(nMajorVersion).getStr()
         << '.'
-        << rtl::OString::valueOf(static_cast<sal_Int32>(nMinorVersion)).getStr()
+        << OString::number(nMinorVersion).getStr()
         << ')';
     return sal_True;
 }
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index e55712e..644ff66 100644
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -1152,7 +1152,7 @@
     sal_Bool bIsEnumSlot = 0 != pEnumValue;
 
     rOutStm << "// Slot Nr. "
-        << rtl::OString::valueOf(static_cast<sal_Int32>(nListPos)).getStr()
+        << OString::number(nListPos).getStr()
         << " : ";
     rtl::OString aSlotIdValue(rtl::OString::valueOf(static_cast<sal_Int32>(
         GetSlotId().GetValue())));
@@ -1364,7 +1364,7 @@
         rOutStm << ',' << endl;
         WriteTab( rOutStm, 4 );
         rOutStm
-            << rtl::OString::valueOf(static_cast<sal_Int32>(nCount)).getStr()
+            << OString::number(nCount).getStr()
             << "/*Offset*/, ";
 
         if( IsMethod() )
@@ -1494,7 +1494,7 @@
     {
         rTable[ nSId ] = this;
         rOutStm << "#define " << GetSlotId().getString().getStr() << '\t'
-            << rtl::OString::valueOf(static_cast<sal_Int32>(nSId)).getStr()
+            << OString::number(nSId).getStr()
             << endl;
     }
 
@@ -1519,7 +1519,7 @@
             sal_Bool bIdOk = sal_False;
             if( rBase.FindId( aSId, &nSId2 ) )
             {
-                aSId = rtl::OString::valueOf(static_cast<sal_Int32>(nSId2));
+                aSId = OString::number(nSId2);
                 bIdOk = sal_True;
             }
 
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx
index 2ce42b7..e8de9da 100644
--- a/idl/source/objects/types.cxx
+++ b/idl/source/objects/types.cxx
@@ -1402,7 +1402,7 @@
     rtl::OStringBuffer aAttrArray;
     sal_uLong   nAttrCount = MakeSfx( aAttrArray );
     rtl::OString aAttrCount(
-        rtl::OString::valueOf(static_cast<sal_Int32>(nAttrCount)));
+        OString::number(nAttrCount));
     aTypeName.append(aAttrCount);
 
     rOutStm << "extern " << aTypeName.getStr()
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 831d893..bb6e1c5 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -1159,7 +1159,7 @@
     if ( nListIndex + 1 > pList->size())
     {
         ExportListEntry *pNew = new ExportListEntry();
-        (*pNew)[LIST_REFID] = rtl::OString::valueOf(static_cast<sal_Int32>(REFID_NONE));
+        (*pNew)[LIST_REFID] = OString::number(REFID_NONE);
         pList->push_back(pNew);
     }
     ExportListEntry *pCurEntry = (*pList)[ nListIndex ];
@@ -1464,7 +1464,7 @@
             {
                pResData->sId = GetPairedListID( sLastListLine );
             }
-            else pResData->sId = rtl::OString::valueOf(static_cast<sal_Int32>(nListIndex));
+            else pResData->sId = OString::number(nListIndex);
 
             if (!pResData->sGId.isEmpty())
                 pResData->sGId = pResData->sGId + rtl::OString('.');
@@ -1692,7 +1692,7 @@
                          */
                         sal_Bool bTranslateList = true;
                         if( !bPairedList ){
-                            pResData->sId = OString::valueOf(static_cast<sal_Int32>(nMaxIndex));
+                            pResData->sId = OString::number(nMaxIndex);
                             pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
                             if ( !pEntrys )
                                 bTranslateList = false;
@@ -1815,7 +1815,7 @@
                                     }
                                 }
                                 else
-                                    pResData->sId = rtl::OString::valueOf(static_cast<sal_Int32>(nIdx));
+                                    pResData->sId = OString::number(nIdx);
                                 PFormEntrys *oldEntry = pEntrys;
                                 pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
                                 if( !pEntrys )
diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx
index f23263b..a3cdcf6 100644
--- a/oox/source/dump/dumperbase.cxx
+++ b/oox/source/dump/dumperbase.cxx
@@ -222,27 +222,27 @@
 
 void StringHelper::appendDec( OUStringBuffer& rStr, sal_uInt8 nData, sal_Int32 nWidth, sal_Unicode cFill )
 {
-    appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill );
+    appendString( rStr, OUString::number( nData ), nWidth, cFill );
 }
 
 void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int8 nData, sal_Int32 nWidth, sal_Unicode cFill )
 {
-    appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill );
+    appendString( rStr, OUString::number( nData ), nWidth, cFill );
 }
 
 void StringHelper::appendDec( OUStringBuffer& rStr, sal_uInt16 nData, sal_Int32 nWidth, sal_Unicode cFill )
 {
-    appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill );
+    appendString( rStr, OUString::number( nData ), nWidth, cFill );
 }
 
 void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int16 nData, sal_Int32 nWidth, sal_Unicode cFill )
 {
-    appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill );
+    appendString( rStr, OUString::number( nData ), nWidth, cFill );
 }
 
 void StringHelper::appendDec( OUStringBuffer& rStr, sal_uInt32 nData, sal_Int32 nWidth, sal_Unicode cFill )
 {
-    appendString( rStr, OUString::valueOf( static_cast< sal_Int64 >( nData ) ), nWidth, cFill );
+    appendString( rStr, OUString::number( nData ), nWidth, cFill );
 }
 
 void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int32 nData, sal_Int32 nWidth, sal_Unicode cFill )
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index 407180c..a69b607 100644
--- a/oox/source/export/vmlexport.cxx
+++ b/oox/source/export/vmlexport.cxx
@@ -262,7 +262,7 @@
     if ( !pAttrList )
         return;
 
-    pAttrList->add( nElement, OString::valueOf( static_cast< sal_Int32 >( nValue ) ).getStr() );
+    pAttrList->add( nElement, OString::number( nValue ).getStr() );
 }
 
 inline sal_uInt16 impl_GetUInt16( const sal_uInt8* &pVal )
diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx
index 6be9800..8e67c6d 100644
--- a/oox/source/ole/olehelper.cxx
+++ b/oox/source/ole/olehelper.cxx
@@ -635,7 +635,7 @@
             while( xNameCont->hasByName( sName ) )
             {
                 sName = sStdName;
-                sName += OUString::valueOf(static_cast<sal_Int32>(++n));
+                sName += OUString::number(++n);
             }
 
             const Reference< XMultiServiceFactory > &rServiceFactory
diff --git a/reportdesign/source/core/api/FixedLine.cxx b/reportdesign/source/core/api/FixedLine.cxx
index 51dff9d..6cd65d9 100644
--- a/reportdesign/source/core/api/FixedLine.cxx
+++ b/reportdesign/source/core/api/FixedLine.cxx
@@ -517,9 +517,9 @@
     const char hundredthmmC[] = "0\xe2\x80\x89\xC2\xB5""m"; // in UTF-8: 0, thin space, µ (micro), m (meter)
     const rtl::OUString hundredthmm(hundredthmmC, sizeof(hundredthmmC)-1, RTL_TEXTENCODING_UTF8);
     if ( aSize.Width < MIN_WIDTH && m_nOrientation == 1 )
-        throw beans::PropertyVetoException("Too small width for FixedLine; minimum is "  + rtl::OUString::valueOf(static_cast<sal_Int32>(MIN_WIDTH))  + hundredthmm, static_cast<cppu::OWeakObject*>(this));
+        throw beans::PropertyVetoException("Too small width for FixedLine; minimum is "  + OUString::number(MIN_WIDTH)  + hundredthmm, static_cast<cppu::OWeakObject*>(this));
     else if ( aSize.Height < MIN_HEIGHT && m_nOrientation == 0 )
-        throw beans::PropertyVetoException("Too small height for FixedLine; minimum is " + rtl::OUString::valueOf(static_cast<sal_Int32>(MIN_HEIGHT)) + hundredthmm, static_cast<cppu::OWeakObject*>(this));
+        throw beans::PropertyVetoException("Too small height for FixedLine; minimum is " + OUString::number(MIN_HEIGHT) + hundredthmm, static_cast<cppu::OWeakObject*>(this));
     OShapeHelper::setSize(aSize,this);
 }
 // -----------------------------------------------------------------------------
diff --git a/rsc/source/parser/erscerr.cxx b/rsc/source/parser/erscerr.cxx
index e08cefa..691f02c 100644
--- a/rsc/source/parser/erscerr.cxx
+++ b/rsc/source/parser/erscerr.cxx
@@ -112,7 +112,7 @@
         case ERR_ERROR: {
             StdLstErr( "!! " );
             if( 1 == nErrors )
-                StdLstErr(rtl::OString::valueOf(static_cast<sal_Int32>(nErrors )).getStr());
+                StdLstErr(OString::number(nErrors).getStr());
             else
                 StdLstErr(rtl::OString::valueOf(static_cast<sal_Int32>(nErrors -1)).getStr());
             StdLstErr( " Error" );
diff --git a/sc/source/core/data/dpdimsave.cxx b/sc/source/core/data/dpdimsave.cxx
index 1b2888c..9cdb2a7 100644
--- a/sc/source/core/data/dpdimsave.cxx
+++ b/sc/source/core/data/dpdimsave.cxx
@@ -786,7 +786,7 @@
     {
         rtl::OUString aDimName( rSourceName );
         if ( !bUseSource )
-            aDimName += rtl::OUString::valueOf(static_cast<sal_Int32>(nAdd));
+            aDimName += OUString::number(nAdd);
         bool bExists = false;
 
         // look for existing group dimensions
diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx
index eb200db..fc096a8 100644
--- a/sc/source/core/data/dptabres.cxx
+++ b/sc/source/core/data/dptabres.cxx
@@ -2798,7 +2798,7 @@
 {
     if ( rParams.IsEnd( nPos ) )
         return;
-    OSL_ENSURE( nPos <= pItemData.size(), rtl::OString::valueOf(static_cast<sal_Int32>(pItemData.size())).getStr() );
+    OSL_ENSURE( nPos <= pItemData.size(), OString::number(pItemData.size()).getStr() );
     ScDPDimension* pThisDim = rParams.GetDim( nPos );
     ScDPLevel* pThisLevel = rParams.GetLevel( nPos );
     SCROW rThisData = pItemData[nPos];
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 0ef12c7..7429467 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -2395,7 +2395,7 @@
         }
     }
     if( bAppendPrec )
-        rFmtStr += rtl::OUString::valueOf(static_cast<sal_Int32>(nPrec));
+        rFmtStr += OUString::number(nPrec);
     const SvNumberformat* pFormat = pFormatter->GetEntry( nFormat );
     if( lcl_FormatHasNegColor( pFormat ) )
         rFmtStr += '-';
diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx
index 3ac5212..51eb967 100644
--- a/sc/source/filter/excel/excimp8.cxx
+++ b/sc/source/filter/excel/excimp8.cxx
@@ -572,7 +572,7 @@
         aEntry.eConnect = SC_AND;
 
         rItem.meType = ScQueryEntry::ByString;
-        rItem.maString = rtl::OUString::valueOf(static_cast<sal_Int32>(nCntOfTop10));
+        rItem.maString = OUString::number(nCntOfTop10);
 
         rStrm.Ignore(20);
         return;
@@ -640,7 +640,7 @@
             case EXC_AFTYPE_BOOLERR:
                 rStrm >> nBoolErr >> nVal;
                 rStrm.Ignore( 6 );
-                rItem.maString = rtl::OUString::valueOf(static_cast<sal_Int32>(nVal));
+                rItem.maString = OUString::number(nVal);
                 bIgnore = (nBoolErr != 0);
             break;
             case EXC_AFTYPE_EMPTY:
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index 0120a38..f416f58 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -1233,7 +1233,7 @@
 {
     rtl::OString aString = rtl::OString::valueOf( static_cast<sal_Int32>(nDigit), 16 );
     if(aString.getLength() == 1)
-        aString = aString + rtl::OString::valueOf(static_cast<sal_Int32>(0));
+        aString = aString + OString::number(0);
     return aString;
 }
 
diff --git a/sc/source/filter/excel/xeextlst.cxx b/sc/source/filter/excel/xeextlst.cxx
index 53ab66b..d4109e6 100644
--- a/sc/source/filter/excel/xeextlst.cxx
+++ b/sc/source/filter/excel/xeextlst.cxx
@@ -140,8 +140,8 @@
 {
     sax_fastparser::FSHelperPtr& rWorksheet = rStrm.GetCurrentStream();
     rWorksheet->startElementNS( XML_x14, XML_dataBar,
-                                XML_minLength, rtl::OString::valueOf(static_cast<sal_Int32>(0)).getStr(),
-                                XML_maxLength, rtl::OString::valueOf(static_cast<sal_Int32>(100)).getStr(),
+                                XML_minLength, OString::number(0).getStr(),
+                                XML_maxLength, OString::number(100).getStr(),
                                 XML_axisPosition, getAxisPosition(meAxisPosition),
                                 FSEND );
 
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 8097867..a7b8b03 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -1213,7 +1213,7 @@
 {
     sax_fastparser::FSHelperPtr& rStyleSheet = rStrm.GetCurrentStream();
     rStyleSheet->singleElement( XML_numFmt,
-            XML_numFmtId,   OString::valueOf( static_cast<sal_Int32>(mnXclNumFmt) ).getStr(),
+            XML_numFmtId,   OString::number( mnXclNumFmt ).getStr(),
             XML_formatCode, rtl::OUStringToOString(maNumFmtString, RTL_TEXTENCODING_UTF8).getStr(),
             FSEND );
 }
@@ -2988,7 +2988,7 @@
 
     sax_fastparser::FSHelperPtr& rStyleSheet = rStrm.GetCurrentStream();
     rStyleSheet->startElement( XML_dxfs,
-            XML_count, rtl::OString::valueOf( static_cast<sal_Int32>(maDxf.size())).getStr(),
+            XML_count, OString::number(maDxf.size()).getStr(),
             FSEND );
 
     for ( DxfContainer::iterator itr = maDxf.begin(); itr != maDxf.end(); ++itr )
diff --git a/sc/source/filter/excel/xlpivot.cxx b/sc/source/filter/excel/xlpivot.cxx
index 6eecf7e..84a6042 100644
--- a/sc/source/filter/excel/xlpivot.cxx
+++ b/sc/source/filter/excel/xlpivot.cxx
@@ -79,7 +79,7 @@
 void XclPCItem::SetInteger( sal_Int16 nValue )
 {
     meType = EXC_PCITEM_INTEGER;
-    maText = rtl::OUString::valueOf(static_cast<sal_Int32>(nValue));
+    maText = OUString::number(nValue);
     mnValue = nValue;
 }
 
diff --git a/sc/source/filter/excel/xltools.cxx b/sc/source/filter/excel/xltools.cxx
index 14d8cb2..4834122 100644
--- a/sc/source/filter/excel/xltools.cxx
+++ b/sc/source/filter/excel/xltools.cxx
@@ -484,7 +484,7 @@
     if( cBuiltIn < SAL_N_ELEMENTS( ppcDefNames ) )
         return rtl::OUString::createFromAscii(ppcDefNames[cBuiltIn]);
     else
-        return rtl::OUString::valueOf(static_cast<sal_Int32>(cBuiltIn));
+        return OUString::number(cBuiltIn);
 }
 
 OUString XclTools::GetBuiltInDefName( sal_Unicode cBuiltIn )
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index de2888e..6b93348 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -424,7 +424,7 @@
             {
                 pDoc->GetName( nTab, aStr );
                 rStrm << "<A HREF=\"#table"
-                    << rtl::OString::valueOf(static_cast<sal_Int32>(nTab)).getStr()
+                    << OString::number(nTab).getStr()
                     << "\">";
                 OUT_STR( aStr );
                 rStrm << "</A>";
@@ -686,7 +686,7 @@
 
                 // Anker festlegen:
                 rStrm << "<A NAME=\"table"
-                    << rtl::OString::valueOf(static_cast<sal_Int32>(nTab)).getStr()
+                    << OString::number(nTab).getStr()
                     << "\">";
                 TAG_ON( OOO_STRING_SVTOOLS_HTML_head1 );
                 OUT_STR( aStrOut );
diff --git a/sc/source/filter/oox/numberformatsbuffer.cxx b/sc/source/filter/oox/numberformatsbuffer.cxx
index 3c943a5..a26137d 100644
--- a/sc/source/filter/oox/numberformatsbuffer.cxx
+++ b/sc/source/filter/oox/numberformatsbuffer.cxx
@@ -1832,7 +1832,7 @@
     catch( Exception& )
     {
         OSL_FAIL( OStringBuffer( "lclCreatePredefinedFormat - cannot create predefined number format " ).
-            append( OString::valueOf( static_cast< sal_Int32 >( nPredefId ) ) ).getStr() );
+            append( OString::number( nPredefId ) ).getStr() );
     }
     return nIndex;
 }
diff --git a/sc/source/filter/starcalc/scflt.cxx b/sc/source/filter/starcalc/scflt.cxx
index 5994850..a8d1a5f 100644
--- a/sc/source/filter/starcalc/scflt.cxx
+++ b/sc/source/filter/starcalc/scflt.cxx
@@ -1018,7 +1018,7 @@
 #if OSL_DEBUG_LEVEL > 0
     if (nError)
     {
-        OSL_FAIL( rtl::OString::valueOf(static_cast<sal_Int32>(nError)).getStr());
+        OSL_FAIL( OString::number(nError).getStr());
     }
 #endif
 
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index de931b0..a0b53b8 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -919,7 +919,7 @@
         AddAttribute(XML_NAMESPACE_TABLE, XML_VISIBILITY, XML_COLLAPSE);
     if (nRepeatColumns > 1)
     {
-        OUString sOUEndCol(OUString::valueOf(static_cast <sal_Int32> (nRepeatColumns)));
+        OUString sOUEndCol(OUString::number(nRepeatColumns));
         AddAttribute(sAttrColumnsRepeated, sOUEndCol);
     }
     if (nIndex != -1)
@@ -4161,7 +4161,7 @@
             {
                 if (nMaxColsUsed > 1)
                     AddAttribute(XML_NAMESPACE_TABLE, XML_NUMBER_COLUMNS_REPEATED,
-                                    OUString::valueOf(static_cast<sal_Int32>(nMaxColsUsed)));
+                                    OUString::number(nMaxColsUsed));
                 SvXMLElementExport aElemColumn(*this, XML_NAMESPACE_TABLE, XML_TABLE_COLUMN, true, true);
             }
 
diff --git a/sc/source/ui/condformat/colorformat.cxx b/sc/source/ui/condformat/colorformat.cxx
index 581954c..353b50b 100644
--- a/sc/source/ui/condformat/colorformat.cxx
+++ b/sc/source/ui/condformat/colorformat.cxx
@@ -271,9 +271,9 @@
         if(!maEdMin.GetText().Len())
         {
             if(nSelectMin == COLORSCALE_PERCENTILE || nSelectMin == COLORSCALE_PERCENT)
-                maEdMin.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(50)));
+                maEdMin.SetText(OUString::number(50));
             else
-                maEdMin.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(0)));
+                maEdMin.SetText(OUString::number(0));
         }
     }
 
@@ -286,9 +286,9 @@
         if(!maEdMax.GetText().Len())
         {
             if(nSelectMax == COLORSCALE_PERCENTILE || nSelectMax == COLORSCALE_PERCENT)
-                maEdMax.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(50)));
+                maEdMax.SetText(OUString::number(50));
             else
-                maEdMax.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(0)));
+                maEdMax.SetText(OUString::number(0));
         }
     }
     return 0;
diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx
index 20e3f81..adb0f27e 100644
--- a/sc/source/ui/condformat/condformatdlgentry.cxx
+++ b/sc/source/ui/condformat/condformatdlgentry.cxx
@@ -835,7 +835,7 @@
         maLbEntryTypeMin.SelectEntryPos(0);
         maLbEntryTypeMiddle.SelectEntryPos(2);
         maLbEntryTypeMax.SelectEntryPos(1);
-        maEdMiddle.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(50)));
+        maEdMiddle.SetText(OUString::number(50));
     }
     FreeResource();
 
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index 3e1b1e1..3758a19 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -1129,7 +1129,7 @@
             aPageNumValue += sal_Unicode(' ');
             break;
         default:
-            aPageNumValue += rtl::OUString::valueOf(static_cast<sal_Int32>(nNum));
+            aPageNumValue += OUString::number(nNum);
     }
 
     return(aPageNumValue);
diff --git a/sd/source/filter/eppt/pptexsoundcollection.cxx b/sd/source/filter/eppt/pptexsoundcollection.cxx
index 9502fa2..3519ed5 100644
--- a/sd/source/filter/eppt/pptexsoundcollection.cxx
+++ b/sd/source/filter/eppt/pptexsoundcollection.cxx
@@ -78,7 +78,7 @@
     if ( !aExtension.isEmpty() )                    // String Atom          ( instance 1 - extension of sound )
         nSize += aExtension.getLength() * 2 + 8;
 
-    rtl::OUString aId( rtl::OUString::valueOf(static_cast<sal_Int32>(nId)) );   // String Atom          ( instance 2 - reference id )
+    rtl::OUString aId( OUString::number(nId) );   // String Atom          ( instance 2 - reference id )
     nSize += 2 * aId.getLength() + 8;
 
     nSize += nFileSize + 8;                         // SoundData Atom
@@ -116,7 +116,7 @@
                 rSt << aExtension[i];
         }
         // id of sound ( instance 2 )
-        rtl::OUString aId( rtl::OUString::valueOf(static_cast<sal_Int32>(nId) ) );
+        rtl::OUString aId( OUString::number(nId ) );
         sal_Int32 nIdLen = aId.getLength();
         rSt << (sal_uInt32)( ( EPP_CString << 16 ) | 32 ) << (sal_uInt32)( nIdLen * 2 );
         for ( i = 0; i < nIdLen; ++i )
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index 8fa0545..ac3f1a5 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -1875,7 +1875,7 @@
                 }
                 if ( bRefStrValid )
                 {
-                    if ( rtl::OUString::valueOf(static_cast<sal_Int32>(nSoundRef)) == aRefStr )
+                    if ( OUString::number(nSoundRef) == aRefStr )
                     {
                         rStCtrl.Seek( nPosMerk2 );
                         if ( SeekToRec( rStCtrl, PPT_PST_CString, nStrLen, NULL, 0 ) )
diff --git a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
index 64d30dd..08bc6ea 100644
--- a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
@@ -648,7 +648,7 @@
 void CustomAnimationCreateDialog::setPosition()
 {
     SvtViewOptions aDlgOpt(
-        E_TABDIALOG, rtl::OUString::valueOf(static_cast<sal_Int32>(DLG_CUSTOMANIMATION_CREATE)));
+        E_TABDIALOG, OUString::number(DLG_CUSTOMANIMATION_CREATE));
     if ( aDlgOpt.Exists() )
     {
         SetWindowState( rtl::OUStringToOString(aDlgOpt.GetWindowState(),
@@ -676,7 +676,7 @@
 {
     // save settings (screen position and current page)
     SvtViewOptions aDlgOpt(
-        E_TABDIALOG, rtl::OUString::valueOf(static_cast<sal_Int32>(DLG_CUSTOMANIMATION_CREATE)));
+        E_TABDIALOG, OUString::number(DLG_CUSTOMANIMATION_CREATE));
     aDlgOpt.SetWindowState(OStringToOUString(
         GetWindowState(WINDOWSTATE_MASK_POS), RTL_TEXTENCODING_ASCII_US));
 }
diff --git a/sd/source/ui/dlg/copydlg.cxx b/sd/source/ui/dlg/copydlg.cxx
index 7fc0c58..5edfc96 100644
--- a/sd/source/ui/dlg/copydlg.cxx
+++ b/sd/source/ui/dlg/copydlg.cxx
@@ -124,22 +124,22 @@
 {
     String& rStr = GetExtraData();
 
-    rStr = OUString::valueOf(static_cast<sal_Int64>(maNumFldCopies.GetValue()));
+    rStr = OUString::number(maNumFldCopies.GetValue());
     rStr.Append( TOKEN );
 
-    rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldMoveX.GetValue()));
+    rStr += OUString::number(maMtrFldMoveX.GetValue());
     rStr.Append( TOKEN );
 
-    rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldMoveY.GetValue()));
+    rStr += OUString::number(maMtrFldMoveY.GetValue());
     rStr.Append( TOKEN );
 
-    rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldAngle.GetValue()));
+    rStr += OUString::number(maMtrFldAngle.GetValue());
     rStr.Append( TOKEN );
 
-    rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldWidth.GetValue()));
+    rStr += OUString::number(maMtrFldWidth.GetValue());
     rStr.Append( TOKEN );
 
-    rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldHeight.GetValue()));
+    rStr += OUString::number(maMtrFldHeight.GetValue());
     rStr.Append( TOKEN );
 
     rStr += OUString::valueOf( (long)maLbStartColor.GetSelectEntryColor().GetColor() );
diff --git a/sd/source/ui/func/fuprobjs.cxx b/sd/source/ui/func/fuprobjs.cxx
index 5ce8eb5..899b75e 100644
--- a/sd/source/ui/func/fuprobjs.cxx
+++ b/sd/source/ui/func/fuprobjs.cxx
@@ -138,7 +138,7 @@
             String aStr(SdResId( STR_LAYOUT_OUTLINE ));
             aStyleName.Append( aStr );
             aStyleName.Append( sal_Unicode(' ') );
-            aStyleName.Append( OUString::valueOf( static_cast<sal_Int32>( nDepth ) ) );
+            aStyleName.Append( OUString::number( nDepth ) );
         }
 
         SfxStyleSheetBasePool* pStyleSheetPool = mpDocSh->GetStyleSheetPool();
diff --git a/sdext/source/minimizer/configurationaccess.cxx b/sdext/source/minimizer/configurationaccess.cxx
index e0ba19b..3057e91 100644
--- a/sdext/source/minimizer/configurationaccess.cxx
+++ b/sdext/source/minimizer/configurationaccess.cxx
@@ -299,7 +299,7 @@
             for( k = 1; k < maSettings.size(); k++ )
             {
                 OptimizerSettings& rSettings( maSettings[ k ] );
-                OUString aElementName( TKGet( TK_Template ).concat( OUString::valueOf( static_cast< sal_Int32 >( k ) ) ) );
+                OUString aElementName( TKGet( TK_Template ).concat( OUString::number( k ) ) );
                 Reference< lang::XSingleServiceFactory > xChildFactory ( xSet, UNO_QUERY_THROW );
                 Reference< container::XNameReplace > xChild( xChildFactory->createInstance(), UNO_QUERY_THROW );
                 xNameContainer->insertByName( aElementName, Any( xChild ) );
diff --git a/stoc/source/simpleregistry/simpleregistry.cxx b/stoc/source/simpleregistry/simpleregistry.cxx
index 4783625..2b2a711 100644
--- a/stoc/source/simpleregistry/simpleregistry.cxx
+++ b/stoc/source/simpleregistry/simpleregistry.cxx
@@ -278,7 +278,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getKeyType:"
                     " underlying RegistryKey::getKeyType() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     switch (type) {
@@ -311,7 +311,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getValueType:"
                     " underlying RegistryKey::getValueInfo() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     switch (type) {
@@ -360,7 +360,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getLongValue:"
                     " underlying RegistryKey::getValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     return value;
@@ -378,7 +378,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key setLongValue:"
                     " underlying RegistryKey::setValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -409,7 +409,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getLongListValue:"
                     " underlying RegistryKey::getLongListValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     sal_uInt32 n = list.getLength();
@@ -445,7 +445,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key setLongListValue:"
                     " underlying RegistryKey::setLongListValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -464,7 +464,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getAsciiValue:"
                     " underlying RegistryKey::getValueInfo() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     if (type != RG_VALUETYPE_STRING) {
@@ -473,7 +473,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getAsciiValue:"
                     " underlying RegistryKey type = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(type))),
+             OUString::number(type)),
             static_cast< OWeakObject * >(this));
     }
     // size contains terminating null (error in underlying registry.cxx):
@@ -502,7 +502,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getAsciiValue:"
                     " underlying RegistryKey::getValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     if (list[size - 1] != '\0') {
@@ -559,7 +559,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key setAsciiValue:"
                     " underlying RegistryKey::setValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -591,7 +591,7 @@
                     "com.sun.star.registry.SimpleRegistry key"
                     " getAsciiListValue: underlying"
                     " RegistryKey::getStringListValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     sal_uInt32 n = list.getLength();
@@ -665,7 +665,7 @@
                     "com.sun.star.registry.SimpleRegistry key"
                     " setAsciiListValue: underlying"
                     " RegistryKey::setStringListValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -684,7 +684,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getStringValue:"
                     " underlying RegistryKey::getValueInfo() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     if (type != RG_VALUETYPE_UNICODE) {
@@ -693,7 +693,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getStringValue:"
                     " underlying RegistryKey type = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(type))),
+             OUString::number(type)),
             static_cast< OWeakObject * >(this));
     }
     // size contains terminating null and is *2 (error in underlying
@@ -723,7 +723,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getStringValue:"
                     " underlying RegistryKey::getValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     if (list[size/2 - 1] != 0) {
@@ -753,7 +753,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key setStringValue:"
                     " underlying RegistryKey::setValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -785,7 +785,7 @@
                     "com.sun.star.registry.SimpleRegistry key"
                     " getStringListValue: underlying"
                     " RegistryKey::getUnicodeListValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     sal_uInt32 n = list.getLength();
@@ -824,7 +824,7 @@
                     "com.sun.star.registry.SimpleRegistry key"
                     " setStringListValue: underlying"
                     " RegistryKey::setUnicodeListValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -844,7 +844,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getBinaryValue:"
                     " underlying RegistryKey::getValueInfo() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     if (type != RG_VALUETYPE_BINARY) {
@@ -853,7 +853,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getBinaryValue:"
                     " underlying RegistryKey type = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(type))),
+             OUString::number(type)),
             static_cast< OWeakObject * >(this));
     }
     if (size > SAL_MAX_INT32) {
@@ -872,7 +872,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getBinaryValue:"
                     " underlying RegistryKey::getValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     return value;
@@ -892,7 +892,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key setBinaryValue:"
                     " underlying RegistryKey::setValue() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -915,7 +915,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key openKey:"
                     " underlying RegistryKey::openKey() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -938,7 +938,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key createKey:"
                     " underlying RegistryKey::createKey() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -954,7 +954,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key closeKey:"
                     " underlying RegistryKey::closeKey() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -970,7 +970,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key deleteKey:"
                     " underlying RegistryKey::deleteKey() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -988,7 +988,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key openKeys:"
                     " underlying RegistryKey::openSubKeys() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     sal_uInt32 n = list.getLength();
@@ -1021,7 +1021,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getKeyNames:"
                     " underlying RegistryKey::getKeyNames() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     sal_uInt32 n = list.getLength();
@@ -1056,7 +1056,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key createLink:"
                     " underlying RegistryKey::createLink() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     default:
         return false;
@@ -1074,7 +1074,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key deleteLink:"
                     " underlying RegistryKey::deleteLink() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -1091,7 +1091,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getLinkTarget:"
                     " underlying RegistryKey::getLinkTarget() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     return target;
@@ -1109,7 +1109,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry key getResolvedName:"
                     " underlying RegistryKey::getResolvedName() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     return resolved;
@@ -1140,7 +1140,7 @@
              rtl::OUString(
                 RTL_CONSTASCII_USTRINGPARAM(
                     "): underlying Registry::open/create() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -1161,7 +1161,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry.close:"
                     " underlying Registry::close() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -1177,7 +1177,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry.destroy:"
                     " underlying Registry::destroy() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
@@ -1194,7 +1194,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry.getRootKey:"
                     " underlying Registry::getRootKey() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
     return new Key(this, root);
@@ -1236,7 +1236,7 @@
                 RTL_CONSTASCII_USTRINGPARAM(
                     "com.sun.star.registry.SimpleRegistry.mergeKey:"
                     " underlying Registry::getRootKey/mergeKey() = ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
+             OUString::number(err)),
             static_cast< OWeakObject * >(this));
     }
 }
diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx
index ef13720..a079d99 100644
--- a/svl/source/items/aeitem.cxx
+++ b/svl/source/items/aeitem.cxx
@@ -238,7 +238,7 @@
     DBG_CHKTHIS(SfxAllEnumItem, 0);
     SfxAllEnumValue_Impl *pVal = new SfxAllEnumValue_Impl;
     pVal->nValue = nValue;
-    pVal->aText = rtl::OUString::valueOf(static_cast<sal_Int32>(nValue));
+    pVal->aText = OUString::number(nValue);
     if ( !pValues )
         pValues = new SfxAllEnumValueArr;
 
diff --git a/svl/source/items/cintitem.cxx b/svl/source/items/cintitem.cxx
index ad016dc..e9d04f8 100644
--- a/svl/source/items/cintitem.cxx
+++ b/svl/source/items/cintitem.cxx
@@ -463,7 +463,7 @@
     const
 {
     DBG_CHKTHIS(CntUInt32Item, 0);
-    rText = rtl::OUString::valueOf(static_cast<sal_Int64>(m_nValue));
+    rText = OUString::number(m_nValue);
     return SFX_ITEM_PRESENTATION_NAMELESS;
 }
 
diff --git a/svl/source/items/intitem.cxx b/svl/source/items/intitem.cxx
index d63ef94..0afc9e1 100644
--- a/svl/source/items/intitem.cxx
+++ b/svl/source/items/intitem.cxx
@@ -94,7 +94,7 @@
                                                   const IntlWrapper *) const
 {
     DBG_CHKTHIS(SfxInt16Item, 0);
-    rText = rtl::OUString::valueOf(static_cast<sal_Int32>(m_nValue));
+    rText = OUString::number(m_nValue);
     return SFX_ITEM_PRESENTATION_NAMELESS;
 }
 
diff --git a/svl/source/items/rngitem_inc.cxx b/svl/source/items/rngitem_inc.cxx
index e172069..5db363d 100644
--- a/svl/source/items/rngitem_inc.cxx
+++ b/svl/source/items/rngitem_inc.cxx
@@ -71,9 +71,7 @@
     const IntlWrapper *
 )   const
 {
-    rText = rtl::OUString::valueOf(static_cast<sal_Int64>(nFrom));
-    rText += ':';
-    rText += rtl::OUString::valueOf(static_cast<sal_Int64>(nTo));
+    rText = OUString::number(nFrom) + ":" + OUString::number(nTo);
     return SFX_ITEM_PRESENTATION_NAMELESS;
 }
 
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx
index 9fa22a8..2f2543c 100644
--- a/svtools/source/brwbox/datwin.cxx
+++ b/svtools/source/brwbox/datwin.cxx
@@ -726,12 +726,12 @@
     sal_uLong nPos = GetThumbPos();
     if ( nPos != _nLastPos )
     {
-        String aTip( rtl::OUString::valueOf(static_cast<sal_Int32>(nPos)) );
+        String aTip( OUString::number(nPos) );
         aTip += '/';
         if ( _pDataWin->GetRealRowCount().Len() )
             aTip += _pDataWin->GetRealRowCount();
         else
-            aTip += rtl::OUString::valueOf(static_cast<sal_Int32>(GetRangeMax()));
+            aTip += OUString::number(GetRangeMax());
 
         Rectangle aRect( GetPointerPosPixel(), Size( GetTextHeight(), GetTextWidth( aTip ) ) );
         if ( _nTip )
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index 6ddec68..83955ae 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -894,7 +894,7 @@
             String aMonthText( maCalendarWrapper.getDisplayName(
                         i18n::CalendarDisplayIndex::MONTH, nMonth-1, 1));
             aMonthText += ' ';
-            aMonthText += rtl::OUString::valueOf(static_cast<sal_Int64>(nYear));
+            aMonthText += OUString::number(nYear);
             long nMonthTextWidth = GetTextWidth( aMonthText );
             long nMonthOffX1 = 0;
             long nMonthOffX2 = 0;
@@ -912,7 +912,7 @@
                 aMonthText  = maCalendarWrapper.getDisplayName(
                         i18n::CalendarDisplayIndex::MONTH, nMonth-1, 0);
                 aMonthText += ' ';
-                aMonthText += rtl::OUString::valueOf(static_cast<sal_Int64>(nYear));
+                aMonthText += OUString::number(nYear);
                 nMonthTextWidth = GetTextWidth( aMonthText );
             }
             long nTempOff = (mnMonthWidth-nMonthTextWidth+1)/2;
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index b99b903..99a8697 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -497,7 +497,7 @@
         nMaxWidth /= nTickUnit;
     else
         nMaxWidth /= aImplRulerUnitTab[mnUnitIndex].nTickUnit;
-    OUString aNumStr = OUString::valueOf(static_cast<sal_Int32>(nMaxWidth));
+    OUString aNumStr = OUString::number(nMaxWidth);
     long nTxtWidth = GetTextWidth( aNumStr );
     const long nTextOff   = 4;
     if ( nTickWidth < nTxtWidth+nTextOff )
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx
index 81a679d..6e6cda2 100644
--- a/svtools/source/misc/transfer.cxx
+++ b/svtools/source/misc/transfer.cxx
@@ -186,7 +186,7 @@
     }
 
     aParams += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ";viewaspect=\"" ));
-    aParams += ::rtl::OUString::valueOf( static_cast< sal_Int32 >( rObjDesc.mnViewAspect ) );
+    aParams += OUString::number( rObjDesc.mnViewAspect );
     aParams += aChar;
 
     aParams += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ";width=\"" ));
diff --git a/svtools/source/uno/wizard/wizardshell.cxx b/svtools/source/uno/wizard/wizardshell.cxx
index 9a05f8b..bed7604 100644
--- a/svtools/source/uno/wizard/wizardshell.cxx
+++ b/svtools/source/uno/wizard/wizardshell.cxx
@@ -229,7 +229,7 @@
             DBG_UNHANDLED_EXCEPTION();
         }
         // fallback for ill-behaved clients: the numeric state
-        return rtl::OUString::valueOf(static_cast<sal_Int32>(i_nState));
+        return OUString::number(i_nState);
     }
 
     //------------------------------------------------------------------------------------------------------------------
diff --git a/svx/source/dialog/compressgraphicdialog.cxx b/svx/source/dialog/compressgraphicdialog.cxx
index 74a5435..c58cfac 100644
--- a/svx/source/dialog/compressgraphicdialog.cxx
+++ b/svx/source/dialog/compressgraphicdialog.cxx
@@ -123,7 +123,7 @@
     aViewSizeString += String( " x " ) ;
     aViewSizeString += GetUnitString( m_aViewSize100mm.Height(), eFieldUnit, cSeparator );
     aViewSizeString += ( " at " ) ;
-    aViewSizeString += OUString::valueOf( static_cast< sal_Int32 >(aValX));
+    aViewSizeString += OUString::number( aValX);
     aViewSizeString += ( " DPI" ) ;
     m_pFixedText3->SetText(aViewSizeString);
 
@@ -144,13 +144,13 @@
 void CompressGraphicsDialog::UpdateNewWidthMF()
 {
     int nPixelX = (sal_Int32)( GetViewWidthInch() * m_dResolution );
-    m_pMFNewWidth->SetText( OUString::valueOf( static_cast< sal_Int32 >( nPixelX ) ));
+    m_pMFNewWidth->SetText( OUString::number( nPixelX ));
 }
 
 void CompressGraphicsDialog::UpdateNewHeightMF()
 {
     int nPixelY = (sal_Int32)( GetViewHeightInch() * m_dResolution );
-    m_pMFNewHeight->SetText( OUString::valueOf( static_cast< sal_Int32 >( nPixelY ) ));
+    m_pMFNewHeight->SetText( OUString::number( nPixelY ));
 }
 
 void CompressGraphicsDialog::UpdateResolutionLB()
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index fa47a5f..5113689 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -815,8 +815,7 @@
     SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/,
     SfxMapUnit /*ePresMetric*/, XubString& rText, const IntlWrapper *) const
 {
-    rText = OUString::valueOf( static_cast< sal_Int32 >(GetValue()));
-    rText += sal_Unicode('%');
+    rText = OUString::number(GetValue()) + "%";
 
     if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
     {
@@ -1299,9 +1298,7 @@
     SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
     XubString& rText, const IntlWrapper *) const
 {
-    rText = OUString::valueOf( static_cast< sal_Int32 >( GetValue()));
-    rText += sal_Unicode('m');
-    rText += sal_Unicode('s');
+    rText = OUString::number(GetValue()) + "ms";
 
     if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
     {
@@ -1486,7 +1483,7 @@
     SfxMapUnit /*ePresentationMetric*/, XubString &rText, const IntlWrapper *) const
 {
     sal_uInt32 i, nCount = GetCount();
-    rText.Append( OUString::valueOf( static_cast<sal_Int32>( nCount ) ) );
+    rText.Append( OUString::number( nCount ) );
     for ( i = 0; i < nCount; i++ )
     {
         rText += sal_Unicode( ' ' );
@@ -2055,8 +2052,7 @@
     SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
     XubString& rText, const IntlWrapper *) const
 {
-    rText = OUString::valueOf( static_cast< sal_Int32 >( GetValue()));
-    rText += sal_Unicode('%');
+    rText = OUString::number(GetValue()) + "%";
 
     if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
     {
diff --git a/svx/source/svdraw/svdmark.cxx b/svx/source/svdraw/svdmark.cxx
index 0fe31f9..2827c4f 100644
--- a/svx/source/svdraw/svdmark.cxx
+++ b/svx/source/svdraw/svdmark.cxx
@@ -594,7 +594,7 @@
             }
 
             aNam.Insert(sal_Unicode(' '), 0);
-            aNam.Insert(OUString::valueOf( static_cast<sal_Int32>(nAnz) ), 0);
+            aNam.Insert(OUString::number( nAnz ), 0);
         }
 
         ((SdrMarkList*)(this))->maMarkName = aNam;
@@ -694,7 +694,7 @@
             }
 
             aNam.Insert(sal_Unicode(' '), 0);
-            aNam.Insert(OUString::valueOf( static_cast<sal_Int32>(nMarkPtObjAnz) ), 0);
+            aNam.Insert(OUString::number( nMarkPtObjAnz ), 0);
         }
 
         XubString aStr1;
@@ -706,7 +706,7 @@
         else
         {
             aStr1 = (ImpGetResStr(bGlue ? STR_ViewMarkedGluePoints : STR_ViewMarkedPoints));
-            aStr1.SearchAndReplaceAscii("%2", OUString::valueOf( static_cast<sal_Int32>(nMarkPtAnz) ));
+            aStr1.SearchAndReplaceAscii("%2", OUString::number( nMarkPtAnz ));
         }
 
         aStr1.SearchAndReplaceAscii("%1", aNam);
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index d9b2d08..a7fb71a 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -1954,7 +1954,7 @@
     if(nPos != STRING_NOTFOUND)
     {
         rStr.Erase(nPos, 2);
-        rStr.Insert(OUString::valueOf( static_cast<sal_Int32>(nVal) ), nPos);
+        rStr.Insert(OUString::number( nVal ), nPos);
     }
 }
 
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index 35b89c0..e35c994 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -1096,7 +1096,7 @@
     if (nPos >= 0)
         // Replace '%2' with the passed value.
         rStr = rStr.replaceAt(
-            nPos, 2, rtl::OUString::valueOf(static_cast<sal_Int32>(nVal)));
+            nPos, 2, OUString::number(nVal));
 }
 
 void SdrObject::ImpForcePlusData()
diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index 96e8abe..17bd80d 100644
--- a/svx/source/svdraw/svdopath.cxx
+++ b/svx/source/svdraw/svdopath.cxx
@@ -1946,7 +1946,7 @@
             if(STRING_NOTFOUND != nPos)
             {
                 rName.Erase(nPos, 2);
-                rName.Insert(rtl::OUString::valueOf(static_cast<sal_Int32>(nPointCount)), nPos);
+                rName.Insert(OUString::number(nPointCount), nPos);
             }
         }
     }
diff --git a/svx/source/xoutdev/xattr2.cxx b/svx/source/xoutdev/xattr2.cxx
index dc7e3c1..64e2ed8 100644
--- a/svx/source/xoutdev/xattr2.cxx
+++ b/svx/source/xoutdev/xattr2.cxx
@@ -99,7 +99,7 @@
             rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
             rText.AppendAscii(": ");
         case SFX_ITEM_PRESENTATION_NAMELESS:
-            rText += OUString::valueOf(static_cast<sal_Int32>(GetValue()));
+            rText += OUString::number(GetValue());
             rText += sal_Unicode('%');
             return ePres;
         default:
@@ -495,7 +495,7 @@
             rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
             rText.AppendAscii(": ");
         case SFX_ITEM_PRESENTATION_NAMELESS:
-            rText += OUString::valueOf(static_cast<sal_Int32>(GetValue()));
+            rText += OUString::number(GetValue());
             rText += sal_Unicode('%');
             return ePres;
         default:
@@ -622,7 +622,7 @@
 //          rText = XubString( ResId( RID_SVXSTR_GRADIENTSTEPCOUNT, DIALOG_MGR() ) );
 //          rText += ": ";
         case SFX_ITEM_PRESENTATION_NAMELESS:
-            rText += OUString::valueOf(static_cast<sal_Int32>(GetValue()));
+            rText += OUString::number(GetValue());
             return ePres;
         default:
             return SFX_ITEM_PRESENTATION_NONE;
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index de0d3a8..59fe3a5 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -237,7 +237,7 @@
 
 rtl::OUString SwPageNumberField::GetPar2() const
 {
-    return rtl::OUString::valueOf(static_cast<sal_Int32>(nOffset));
+    return OUString::number(nOffset);
 }
 
 void SwPageNumberField::SetPar2(const rtl::OUString& rStr)
@@ -2126,7 +2126,7 @@
 
 rtl::OUString SwRefPageSetField::GetPar2() const
 {
-    return rtl::OUString::valueOf(static_cast<sal_Int32>(GetOffset()));
+    return OUString::number(GetOffset());
 }
 
 void SwRefPageSetField::SetPar2(const rtl::OUString& rStr)
diff --git a/sw/source/core/fields/flddat.cxx b/sw/source/core/fields/flddat.cxx
index 4e55297..3d841e4 100644
--- a/sw/source/core/fields/flddat.cxx
+++ b/sw/source/core/fields/flddat.cxx
@@ -114,7 +114,7 @@
 rtl::OUString SwDateTimeField::GetPar2() const
 {
     if (nOffset)
-        return rtl::OUString::valueOf(static_cast<sal_Int32>(nOffset));
+        return OUString::number(nOffset);
     return rtl::OUString();
 }
 
diff --git a/sw/source/filter/html/htmlftn.cxx b/sw/source/filter/html/htmlftn.cxx
index 1da14bd..be7ee34 100644
--- a/sw/source/filter/html/htmlftn.cxx
+++ b/sw/source/filter/html/htmlftn.cxx
@@ -501,7 +501,7 @@
     }
     if( rInfo.nFtnOffset > 0 )
     {
-        pParts[1] = rtl::OUString::valueOf(static_cast<sal_Int32>(rInfo.nFtnOffset));
+        pParts[1] = OUString::number(rInfo.nFtnOffset);
         nParts = 2;
     }
     if( !rInfo.GetPrefix().isEmpty() )
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index b2cf7e3..ae4770a 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -2779,10 +2779,10 @@
 void DocxAttributeOutput::SectionLineNumbering( sal_uLong nRestartNo, const SwLineNumberInfo& rLnNumInfo )
 {
     FastAttributeList* pAttr = m_pSerializer->createAttrList();
-    pAttr->add( FSNS( XML_w, XML_countBy ), OString::valueOf(static_cast<sal_Int32>(rLnNumInfo.GetCountBy())).getStr());
+    pAttr->add( FSNS( XML_w, XML_countBy ), OString::number(rLnNumInfo.GetCountBy()).getStr());
     pAttr->add( FSNS( XML_w, XML_restart ), rLnNumInfo.IsRestartEachPage() ? "newPage" : "continuous" );
     if( rLnNumInfo.GetPosFromLeft())
-        pAttr->add( FSNS( XML_w, XML_distance ), OString::valueOf(static_cast<sal_Int32>(rLnNumInfo.GetPosFromLeft())).getStr());
+        pAttr->add( FSNS( XML_w, XML_distance ), OString::number(rLnNumInfo.GetPosFromLeft()).getStr());
     if( nRestartNo )
         pAttr->add( FSNS( XML_w, XML_start ), OString::valueOf( long( nRestartNo )).getStr());
     XFastAttributeListRef xAttrs( pAttr );
@@ -2990,7 +2990,7 @@
     if( file.open( osl_File_OpenFlag_Write ) != osl::File::E_None )
         return;
     uno::Reference< com::sun::star::io::XOutputStream > xOutStream = m_rExport.GetFilter().openFragmentStream(
-        OUString( "word/fonts/font" ) + OUString::valueOf( static_cast< sal_Int32 >( m_nextFontId )) + ".ttf",
+        OUString( "word/fonts/font" ) + OUString::number(m_nextFontId) + ".ttf",
         "application/vnd.openxmlformats-officedocument.obfuscatedFont" );
     // Not much point in trying hard with the obfuscation key, whoever reads the spec can read the font anyway,
     // so just alter the first and last part of the key.
@@ -3041,7 +3041,7 @@
     xOutStream->closeOutput();
     OString relId = OUStringToOString( GetExport().GetFilter().addRelation( m_pSerializer->getOutputStream(),
         "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",
-        OUString( "fonts/font" ) + OUString::valueOf( static_cast< sal_Int32 >( m_nextFontId )) + ".ttf" ), RTL_TEXTENCODING_UTF8 );
+        OUString( "fonts/font" ) + OUString::number(m_nextFontId) + ".ttf" ), RTL_TEXTENCODING_UTF8 );
     m_pSerializer->singleElementNS( XML_w, tag,
         FSNS( XML_r, XML_id ), relId.getStr(),
         FSNS( XML_w, XML_fontKey ), fontKeyStr,
@@ -3178,7 +3178,7 @@
         m_pSerializer->startElementNS( XML_w, XML_tabs, FSEND );
         m_pSerializer->singleElementNS( XML_w, XML_tab,
                 FSNS( XML_w, XML_val ), "num",
-                FSNS( XML_w, XML_pos ), OString::valueOf( static_cast<sal_Int32>(nListTabPos) ).getStr(),
+                FSNS( XML_w, XML_pos ), OString::number( nListTabPos ).getStr(),
                 FSEND );
         m_pSerializer->endElementNS( XML_w, XML_tabs );
     }
diff --git a/sw/source/ui/dialog/wordcountdialog.cxx b/sw/source/ui/dialog/wordcountdialog.cxx
index 5264293..ff777ac 100644
--- a/sw/source/ui/dialog/wordcountdialog.cxx
+++ b/sw/source/ui/dialog/wordcountdialog.cxx
@@ -50,7 +50,7 @@
 {
     void setValue(FixedText *pWidget, sal_uLong nValue)
     {
-        rtl::OUString sValue(rtl::OUString::valueOf(static_cast<sal_Int64>(nValue)));
+        rtl::OUString sValue(OUString::number(nValue));
         pWidget->SetText(sValue);
     }
 }
diff --git a/sw/source/ui/uiview/view2.cxx b/sw/source/ui/uiview/view2.cxx
index 1ae6d52..33266ad 100644
--- a/sw/source/ui/uiview/view2.cxx
+++ b/sw/source/ui/uiview/view2.cxx
@@ -1246,10 +1246,10 @@
 
                 const sal_uInt32 stringId = selectionStats.nWord? STR_STATUSBAR_WORDCOUNT : STR_STATUSBAR_WORDCOUNT_NO_SELECTION;
                 rtl::OUString wordCount(SW_RES(stringId));
-                wordCount = wordCount.replaceAll("$1", rtl::OUString::valueOf(static_cast<sal_Int64>(documentStats.nWord)));
+                wordCount = wordCount.replaceAll("$1", OUString::number(documentStats.nWord));
                 if (selectionStats.nWord)
                 {
-                    wordCount = wordCount.replaceAll("$2", rtl::OUString::valueOf(static_cast<sal_Int64>(selectionStats.nWord)));
+                    wordCount = wordCount.replaceAll("$2", OUString::number(selectionStats.nWord));
                 }
                 rSet.Put(SfxStringItem(FN_STAT_WORDCOUNT, wordCount));
 
diff --git a/sw/source/ui/utlui/attrdesc.cxx b/sw/source/ui/utlui/attrdesc.cxx
index 5b6a4c9..4d03bcf 100644
--- a/sw/source/ui/utlui/attrdesc.cxx
+++ b/sw/source/ui/utlui/attrdesc.cxx
@@ -1095,7 +1095,7 @@
             rText = SW_RESSTR( STR_ROTATION );
         else if( rText.Len() )
             rText.Erase();
-        ( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '\xB0';
+        ( rText += OUString::number( GetValue() )) += '\xB0';
         break;
 
     default:
@@ -1118,7 +1118,7 @@
             rText = SW_RESSTR( STR_LUMINANCE );
         else if( rText.Len() )
             rText.Erase();
-        ( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
+        ( rText += OUString::number( GetValue() )) += '%';
         break;
 
     default:
@@ -1141,7 +1141,7 @@
             rText = SW_RESSTR( STR_CONTRAST );
         else if( rText.Len() )
             rText.Erase();
-        ( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
+        ( rText += OUString::number( GetValue() )) += '%';
         break;
 
     default:
@@ -1177,7 +1177,7 @@
         }
         else if( rText.Len() )
             rText.Erase();
-        ( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
+        ( rText += OUString::number( GetValue() )) += '%';
         break;
 
     default:
@@ -1245,7 +1245,7 @@
             rText = SW_RESSTR( STR_TRANSPARENCY );
         else if( rText.Len() )
             rText.Erase();
-        ( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
+        ( rText += OUString::number( GetValue() )) += '%';
         break;
 
     default:
diff --git a/tools/bootstrp/mkunroll/mkunroll.cxx b/tools/bootstrp/mkunroll/mkunroll.cxx
index cc417e0..8f4c935 100644
--- a/tools/bootstrp/mkunroll/mkunroll.cxx
+++ b/tools/bootstrp/mkunroll/mkunroll.cxx
@@ -201,7 +201,7 @@
                 for ( size_t i=0; i<nCount; i++ )
                 {
                     MkLine *pMkLine = (*pLine->pPrivateTnrLst)[ i ];
-                    rtl::OString aLine = pMkLine->aLine.replaceAll(aTnr, rtl::OString::valueOf(static_cast<sal_Int32>(n)));
+                    rtl::OString aLine = pMkLine->aLine.replaceAll(aTnr, OString::number(n));
                     fputs( aLine.getStr(), pOut );
                     fprintf( stderr, "o" );
                 }
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 0f3d43c..17b75ee 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -702,7 +702,7 @@
 {
     // Return on resource errors
     static int bInUse = sal_False;
-    rtl::OUString aTypStr(OUString::valueOf(static_cast<sal_Int32>(rTypeId.GetId())));
+    rtl::OUString aTypStr(OUString::number(rTypeId.GetId()));
 
     if ( !bInUse )
     {
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx
index 09b9368..5daee34 100644
--- a/ucb/workben/ucb/ucbdemo.cxx
+++ b/ucb/workben/ucb/ucbdemo.cxx
@@ -1066,7 +1066,7 @@
                     {
                         OUString aId( xContentAccess->
                                           queryContentIdentifierString() );
-                        aText = OUString::valueOf( static_cast<sal_Int64>(++n) ) + ") " + aId + " : ";
+                        aText = OUString::number( ++n ) + ") " + aId + " : ";
                     }
 
                     // Title:
@@ -1150,7 +1150,7 @@
     if ( bTiming )
     {
         nTime = Time::GetSystemTicks() - nTime;
-        OUString aText = "Operation took " + OUString::valueOf(static_cast<sal_Int64>(nTime)) + " ms.";
+        OUString aText = "Operation took " + OUString::number(nTime) + " ms.";
         print( aText );
     }
 }
@@ -1176,7 +1176,7 @@
             OUString aText;
             for ( sal_uInt32 i = aEntry.m_nLevel; i != 0; --i )
                 aText += '=';
-            aText = aText + "LEVEL " + OUString::valueOf(static_cast<sal_Int64>(aEntry.m_nLevel));
+            aText = aText + "LEVEL " + OUString::number(aEntry.m_nLevel);
 
             uno::Reference< ucb::XContentIdentifier > xID;
             if ( aEntry.m_bUseIdentifier )
@@ -1225,7 +1225,7 @@
     if ( bTiming )
     {
         nTime = Time::GetSystemTicks() - nTime;
-        OUString aText = "Operation took "  + OUString::valueOf(static_cast<sal_Int64>(nTime)) + " ms.";
+        OUString aText = "Operation took "  + OUString::number(nTime) + " ms.";
         print( aText );
     }
 }
diff --git a/unotest/source/cpp/toabsolutefileurl.cxx b/unotest/source/cpp/toabsolutefileurl.cxx
index b92069b..966dc3e 100644
--- a/unotest/source/cpp/toabsolutefileurl.cxx
+++ b/unotest/source/cpp/toabsolutefileurl.cxx
@@ -37,7 +37,7 @@
             (rtl::OUString(
                 RTL_CONSTASCII_USTRINGPARAM(
                     "osl_getProcessWorkingDir failed with ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(e1))),
+             OUString::number(e1)),
             css::uno::Reference< css::uno::XInterface >());
     }
     rtl::OUString url;
@@ -50,7 +50,7 @@
                     "osl::FileBase::getFileURLFromSystemPath(")) +
              relativePathname +
              rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(") failed with ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(e2))),
+             OUString::number(e2)),
             css::uno::Reference< css::uno::XInterface >());
     }
     rtl::OUString absUrl;
@@ -62,7 +62,7 @@
                     "osl::FileBase::getAbsoluteFileURL(")) +
              cwd + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(", ")) + url +
              rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(") failed with ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(e2))),
+             OUString::number(e2)),
             css::uno::Reference< css::uno::XInterface >());
     }
     return absUrl;
diff --git a/unotest/source/cpp/uniquepipename.cxx b/unotest/source/cpp/uniquepipename.cxx
index f7a67c0..667bc33 100644
--- a/unotest/source/cpp/uniquepipename.cxx
+++ b/unotest/source/cpp/uniquepipename.cxx
@@ -32,7 +32,7 @@
     CPPUNIT_ASSERT_EQUAL(
         osl_Process_E_None,
         osl_getProcessInfo(0, osl_Process_IDENTIFIER, &info));
-    return name + rtl::OUString::valueOf(static_cast< sal_Int64 >(info.Ident));
+    return name + OUString::number(info.Ident);
 }
 
 }
diff --git a/vcl/generic/print/common_gfx.cxx b/vcl/generic/print/common_gfx.cxx
index e73c6aa..c460558 100644
--- a/vcl/generic/print/common_gfx.cxx
+++ b/vcl/generic/print/common_gfx.cxx
@@ -1204,7 +1204,7 @@
 
     static sal_uInt16 nEps = 0;
     if( aDocTitle.isEmpty() )
-        aDocTitle = rtl::OString::valueOf(static_cast<sal_Int32>(nEps++));
+        aDocTitle = OString::number(nEps++);
 
     if( fLeft != fRight && fTop != fBottom )
     {
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index a18d0b2..583d6ce 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -808,7 +808,7 @@
             //Make up a name for it
             OString sTabPageId = get_by_window(pParent) +
                 OString("-page") +
-                OString::valueOf(static_cast<sal_Int32>(nNewPageCount));
+                OString::number(nNewPageCount);
             m_aChildren.push_back(WinAndId(sTabPageId, pPage, false));
             pPage->SetHelpId(m_sHelpRoot + sTabPageId);
 
diff --git a/writerfilter/source/doctok/WW8ResourceModelImpl.cxx b/writerfilter/source/doctok/WW8ResourceModelImpl.cxx
index 4583260..c77b682 100644
--- a/writerfilter/source/doctok/WW8ResourceModelImpl.cxx
+++ b/writerfilter/source/doctok/WW8ResourceModelImpl.cxx
@@ -300,7 +300,7 @@
 
 OUString WW8IntValue::getString() const
 {
-    return OUString::valueOf(static_cast<sal_Int32>(mValue));
+    return OUString::number(mValue);
 }
 
 uno::Any WW8IntValue::getAny() const
diff --git a/writerfilter/source/rtftok/rtfvalue.cxx b/writerfilter/source/rtftok/rtfvalue.cxx
index a0aaf08..e4dd41f 100644
--- a/writerfilter/source/rtftok/rtfvalue.cxx
+++ b/writerfilter/source/rtftok/rtfvalue.cxx
@@ -193,7 +193,7 @@
     if (!m_sValue.isEmpty() || m_bForceString)
         return OUStringToOString(m_sValue, RTL_TEXTENCODING_UTF8).getStr();
     else
-        return OString::valueOf(static_cast<sal_Int32>(m_nValue)).getStr();
+        return OString::number(m_nValue).getStr();
 }
 
 RTFValue* RTFValue::Clone()
diff --git a/xmloff/source/draw/shapeexport2.cxx b/xmloff/source/draw/shapeexport2.cxx
index 6e0218a..f9626f8 100644
--- a/xmloff/source/draw/shapeexport2.cxx
+++ b/xmloff/source/draw/shapeexport2.cxx
@@ -2119,7 +2119,7 @@
         const OUString aVolumeDBStr(  "VolumeDB"  );
         xPropSet->getPropertyValue( OUString(  "VolumeDB"  ) ) >>= nVolumeDB;
         mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_NAME, aVolumeDBStr );
-        mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_VALUE, OUString::valueOf( static_cast< sal_Int32 >( nVolumeDB ) ) );
+        mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_VALUE, OUString::number( nVolumeDB ) );
         delete( new SvXMLElementExport( mrExport, XML_NAMESPACE_DRAW, XML_PARAM, sal_False, sal_True ) );
 
         media::ZoomLevel eZoom;
diff --git a/xmlreader/source/xmlreader.cxx b/xmlreader/source/xmlreader.cxx
index 129ee53..cfdad6f 100644
--- a/xmlreader/source/xmlreader.cxx
+++ b/xmlreader/source/xmlreader.cxx
@@ -73,7 +73,7 @@
         throw css::uno::RuntimeException(
             (rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("cannot open ")) +
              fileUrl_ + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(": ")) +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(e))),
+             OUString::number(e)),
             css::uno::Reference< css::uno::XInterface >());
     }
     e = osl_getFileSize(fileHandle_, &fileSize_);
@@ -91,7 +91,7 @@
         }
         throw css::uno::RuntimeException(
             ("cannot mmap " + fileUrl_ + " (" +
-             rtl::OUString::valueOf(static_cast< sal_Int32 >(e)) + ")"),
+             OUString::number(e) + ")"),
             css::uno::Reference< css::uno::XInterface >());
     }
     namespaceIris_.push_back(

-- 
To view, visit https://gerrit.libreoffice.org/1784
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Jean-Noël Rouvignac <jn.rouvignac at gmail.com>



More information about the LibreOffice mailing list