From 6119e15c8b2b19c6ea3c271fb1c9d7e047902e77 Mon Sep 17 00:00:00 2001 From: Jean-Noël Rouvignac Date: Wed, 20 Feb 2013 00:20:41 +0100 Subject: fdo#38838 search replace for String::CreateFromInt32(). I ran the following code replace: s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/ Change-Id: I7c047cf1c90632bddc23ed49f9455d745ac8688e Reviewed-on: https://gerrit.libreoffice.org/2282 Reviewed-by: Michael Stahl Tested-by: Michael Stahl --- sd/source/core/drawdoc2.cxx | 2 +- sd/source/core/drawdoc3.cxx | 2 +- sd/source/core/sdpage.cxx | 12 +++--- sd/source/core/sdpage2.cxx | 4 +- sd/source/core/stlpool.cxx | 12 +++--- sd/source/filter/eppt/epptso.cxx | 8 ++-- sd/source/filter/html/htmlex.cxx | 52 ++++++++++++------------- sd/source/filter/ppt/pptin.cxx | 6 +-- sd/source/filter/xml/sdxmlwrp.cxx | 4 +- sd/source/ui/animations/CustomAnimationPane.cxx | 10 ++--- sd/source/ui/dlg/present.cxx | 2 +- sd/source/ui/dlg/sdtreelb.cxx | 2 +- sd/source/ui/func/fuinsfil.cxx | 2 +- sd/source/ui/func/futempl.cxx | 2 +- sd/source/ui/slidesorter/view/SlsToolTip.cxx | 2 +- sd/source/ui/unoidl/unomodel.cxx | 2 +- sd/source/ui/view/drawview.cxx | 6 +-- sd/source/ui/view/drviewsb.cxx | 2 +- sd/source/ui/view/outlnvsh.cxx | 6 +-- sd/source/ui/view/outlview.cxx | 6 +-- sd/source/ui/view/sdview.cxx | 2 +- svx/source/dialog/svxruler.cxx | 4 +- svx/source/engine3d/float3d.cxx | 6 +-- svx/source/form/datanavi.cxx | 2 +- svx/source/form/fmobj.cxx | 2 +- svx/source/form/navigatortree.cxx | 2 +- svx/source/gallery2/galbrws1.cxx | 6 +-- svx/source/gallery2/gallery1.cxx | 2 +- svx/source/gallery2/galtheme.cxx | 4 +- svx/source/sdr/properties/textproperties.cxx | 2 +- svx/source/stbctrls/zoomctrl.cxx | 4 +- svx/source/tbxctrls/fontworkgallery.cxx | 2 +- svx/source/tbxctrls/layctrl.cxx | 6 +-- svx/source/tbxctrls/lboxctrl.cxx | 2 +- svx/source/unodraw/UnoGraphicExporter.cxx | 2 +- svx/source/xoutdev/_xoutbmp.cxx | 2 +- svx/source/xoutdev/xattr.cxx | 6 +-- svx/workben/edittest.cxx | 44 ++++++++++----------- 38 files changed, 122 insertions(+), 122 deletions(-) diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx index b654cfb98d28..e6128312dce7 100644 --- a/sd/source/core/drawdoc2.cxx +++ b/sd/source/core/drawdoc2.cxx @@ -351,7 +351,7 @@ void SdDrawDocument::UpdatePageRelativeURLs(SdPage* pPage, sal_uInt16 nPos, sal_ // update link page number number += nIncrement; aURL.Erase (aHashSlide.Len() + 1, aURL.Len() - aHashSlide.Len() - 1); - aURL += XubString::CreateFromInt32(number); + aURL += OUString::number(number); if (bNotes) { aURL += ' '; diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx index b18c254f009f..0c2e5e12b4b1 100644 --- a/sd/source/core/drawdoc3.cxx +++ b/sd/source/core/drawdoc3.cxx @@ -1767,7 +1767,7 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum, // Testnamen bilden aTest = aName; // Standard, Standard1, Standard2, ... if (nCount > 0) - aTest += String::CreateFromInt32( nCount ); + aTest += OUString::number( nCount ); // gibt's schon eine, die so heisst? bNotANewName = sal_False; diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx index f9187be4988d..24244d2ec159 100644 --- a/sd/source/core/sdpage.cxx +++ b/sd/source/core/sdpage.cxx @@ -511,7 +511,7 @@ SdrObject* SdPage::CreatePresObj(PresObjKind eObjKind, sal_Bool bVertical, const { String aName(maLayoutName); aName += sal_Unicode( ' ' ); - aName += String::CreateFromInt32( nLevel ); + aName += OUString::number( nLevel ); SfxStyleSheet* pSheet = (SfxStyleSheet*)pModel->GetStyleSheetPool()->Find(aName, SD_STYLE_FAMILY_MASTERPAGE); DBG_ASSERT(pSheet, "Vorlage fuer Gliederungsobjekt nicht gefunden"); if (pSheet) @@ -595,7 +595,7 @@ SfxStyleSheet* SdPage::GetStyleSheetForPresObj(PresObjKind eObjKind) const { aName = GetLayoutName(); aName += sal_Unicode( ' ' ); - aName += String::CreateFromInt32( 1 ); + aName += OUString::number( 1 ); } break; @@ -661,7 +661,7 @@ SdStyleSheet* SdPage::getPresentationStyle( sal_uInt32 nHelpId ) const if( nNameId == STR_LAYOUT_OUTLINE ) { aStyleName.Append( sal_Unicode( ' ' )); - aStyleName.Append( String::CreateFromInt32( sal_Int32( nHelpId - HID_PSEUDOSHEET_OUTLINE ))); + aStyleName.Append( OUString::number( sal_Int32( nHelpId - HID_PSEUDOSHEET_OUTLINE ))); } SfxStyleSheetBasePool* pStShPool = pModel->GetStyleSheetPool(); @@ -1910,7 +1910,7 @@ void SdPage::ScaleObjects(const Size& rNewPageSize, const Rectangle& rNewBorderR for (sal_uInt16 i=1; i<=9; i++) { String sLayoutName(aName); - sLayoutName += String::CreateFromInt32( (sal_Int32)i ); + sLayoutName += OUString::number( (sal_Int32)i ); SfxStyleSheet* pOutlineSheet = (SfxStyleSheet*)((SdDrawDocument*) pModel)->GetStyleSheetPool()->Find(sLayoutName, SD_STYLE_FAMILY_MASTERPAGE); if (pOutlineSheet) @@ -2063,7 +2063,7 @@ SdrObject* convertPresentationObjectImpl( SdPage& rPage, SdrObject* pSourceObj, // Neue Vorlage zuweisen String aName(rPage.GetLayoutName()); aName += sal_Unicode( ' ' ); - aName += String::CreateFromInt32( nLevel ); + aName += OUString::number( nLevel ); SfxStyleSheet* pSheet = static_cast( pModel->GetStyleSheetPool()->Find(aName, SD_STYLE_FAMILY_MASTERPAGE) ); if (pSheet) @@ -2523,7 +2523,7 @@ const String& SdPage::GetName() const // if the document has number none as a formating // for page numbers we still default to arabic numbering // to keep the default page names unique - aCreatedPageName += String::CreateFromInt32( (sal_Int32)nNum ); + aCreatedPageName += OUString::number( (sal_Int32)nNum ); } else { diff --git a/sd/source/core/sdpage2.cxx b/sd/source/core/sdpage2.cxx index 13fda3116685..b4e5c40c13e5 100644 --- a/sd/source/core/sdpage2.cxx +++ b/sd/source/core/sdpage2.cxx @@ -163,9 +163,9 @@ void SdPage::SetPresentationLayout(const String& rLayoutName, aFullName = maLayoutName; aOldFullName = aOldLayoutName; aFullName += sal_Unicode( ' ' ); - aFullName += String::CreateFromInt32( (sal_Int32) (i <= 0 ) ? 1 : i + 1); + aFullName += OUString::number( (sal_Int32) (i <= 0 ) ? 1 : i + 1); aOldFullName += sal_Unicode( ' ' ); - aOldFullName += String::CreateFromInt32( (sal_Int32) (i <= 0 ) ? 1 : i + 1 ); + aOldFullName += OUString::number( (sal_Int32) (i <= 0 ) ? 1 : i + 1 ); pSheet = pStShPool->Find(aOldFullName, SD_STYLE_FAMILY_MASTERPAGE); DBG_ASSERT(pSheet, "alte Gliederungsvorlage nicht gefunden"); diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index 26fb29928c57..5f7671a714ab 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -146,7 +146,7 @@ void SdStyleSheetPool::CreateOutlineSheetList (const String& rLayoutName, std::v { String aFullName(aName); aFullName.Append( sal_Unicode( ' ' )); - aFullName.Append( String::CreateFromInt32( (sal_Int32)nSheet )); + aFullName.Append( OUString::number( (sal_Int32)nSheet )); SfxStyleSheetBase* pSheet = Find(aFullName, SD_STYLE_FAMILY_MASTERPAGE); if (pSheet) @@ -204,7 +204,7 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const String& rLayoutName, sal_Bo { String aLevelName(aName); aLevelName.Append( sal_Unicode( ' ' )); - aLevelName.Append( String::CreateFromInt32( sal_Int32( nLevel ))); + aLevelName.Append( OUString::number( sal_Int32( nLevel ))); aLevelName.Insert(aPrefix, 0); @@ -306,7 +306,7 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const String& rLayoutName, sal_Bo { String aLevelName(aName); aLevelName.Append( sal_Unicode( ' ' )); - aLevelName.Append( String::CreateFromInt32( sal_Int32( nLevel ))); + aLevelName.Append( OUString::number( sal_Int32( nLevel ))); aLevelName.Insert(aPrefix, 0); @@ -731,7 +731,7 @@ void SdStyleSheetPool::CreateLayoutSheetNames(const String& rLayoutName, std::ve aStr = String( aPrefix ); aStr.Append(aName); aStr.Append( sal_Unicode( ' ' )); - aStr.Append( String::CreateFromInt32( sal_Int32( nLevel ))); + aStr.Append( OUString::number( sal_Int32( nLevel ))); aNameList.push_back(aStr); } @@ -847,7 +847,7 @@ void SdStyleSheetPool::CreatePseudosIfNecessary() { String aLevelName(aName); aLevelName.Append( sal_Unicode( ' ' )); - aLevelName.Append( String::CreateFromInt32( sal_Int32( nLevel ))); + aLevelName.Append( OUString::number( sal_Int32( nLevel ))); if( (pSheet = Find(aLevelName, SD_STYLE_FAMILY_PSEUDO)) == 0 ) { @@ -943,7 +943,7 @@ void SdStyleSheetPool::UpdateStdNames() if( nNameId == STR_PSEUDOSHEET_OUTLINE ) { aNewName.Append( sal_Unicode( ' ' )); - aNewName.Append( String::CreateFromInt32( sal_Int32( nHelpId - HID_PSEUDOSHEET_OUTLINE ))); + aNewName.Append( OUString::number( sal_Int32( nHelpId - HID_PSEUDOSHEET_OUTLINE ))); } } diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 29862752910a..44bacaff1e59 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -1222,9 +1222,9 @@ void PPTWriter::ImplWriteTextStyleAtom( SvStream& rOut, int nTextInstance, sal_u nPageIndex = pIter - maSlideNameList.begin(); aPageUrl = rtl::OUString::valueOf(static_cast(256 + nPageIndex)); aPageUrl.Append( rtl::OUString( "," ) ); - aPageUrl.Append( String::CreateFromInt32( nPageIndex + 1 ) ); + aPageUrl.Append( OUString::number( nPageIndex + 1 ) ); aPageUrl.Append( rtl::OUString( ",Slide " ) ); - aPageUrl.Append( String::CreateFromInt32( nPageIndex + 1 ) ); + aPageUrl.Append( OUString::number( nPageIndex + 1 ) ); } } sal_uInt32 nHyperId(0); @@ -2058,9 +2058,9 @@ void PPTWriter::ImplWriteClickAction( SvStream& rSt, ::com::sun::star::presentat String aEmpty; String aHyperString = rtl::OUString::valueOf(static_cast(256 + nIndex)); aHyperString.Append( rtl::OUString( "," ) ); - aHyperString.Append( String::CreateFromInt32( nIndex + 1 ) ); + aHyperString.Append( OUString::number( nIndex + 1 ) ); aHyperString.Append( rtl::OUString( ",Slide " ) ); - aHyperString.Append( String::CreateFromInt32( nIndex + 1 ) ); + aHyperString.Append( OUString::number( nIndex + 1 ) ); nHyperLinkID = ImplInsertBookmarkURL( aHyperString, 1 | ( nIndex << 8 ) | ( 1 << 31 ), aBookmark, aEmpty, aEmpty, aHyperString ); } } diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index 57dfb57fbe02..943645dc6522 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -1553,7 +1553,7 @@ bool HtmlExport::CreateHtmlForPresPages() if( nSdPage < (mnSdPageCount-1) || bEndless ) { aStr.AppendAscii( "" ); String aLink( RTL_CONSTASCII_USTRINGPARAM( "JavaScript:parent.NavigateAbs(" ) ); - aLink += String::CreateFromInt32(nSdPage); + aLink += OUString::number(nSdPage); aLink.Append( sal_Unicode(')') ); String aTitle = CreateTextForTitle(pOutliner,pPage, maBackColor); @@ -2107,14 +2107,14 @@ void HtmlExport::CreateFileNames() else { pName = new String( RTL_CONSTASCII_USTRINGPARAM("img") ); - *pName += String::CreateFromInt32(nSdPage); + *pName += OUString::number(nSdPage); *pName += maHTMLExtension; } mpHTMLFiles[nSdPage] = pName; pName = new String( RTL_CONSTASCII_USTRINGPARAM("img") ); - *pName += String::CreateFromInt32(nSdPage); + *pName += OUString::number(nSdPage); if( meFormat==FORMAT_GIF ) pName->AppendAscii( ".gif" ); else if( meFormat==FORMAT_JPG ) @@ -2125,7 +2125,7 @@ void HtmlExport::CreateFileNames() mpImageFiles[nSdPage] = pName; pName = new String( RTL_CONSTASCII_USTRINGPARAM("thumb") ); - *pName += String::CreateFromInt32(nSdPage); + *pName += OUString::number(nSdPage); if( meFormat!=FORMAT_JPG ) pName->AppendAscii( ".png" ); else @@ -2134,7 +2134,7 @@ void HtmlExport::CreateFileNames() mpThumbnailFiles[nSdPage] = pName; pName = new String( RTL_CONSTASCII_USTRINGPARAM("text")); - *pName += String::CreateFromInt32(nSdPage); + *pName += OUString::number(nSdPage); *pName += maHTMLExtension; mpTextFiles[nSdPage] = pName; @@ -2265,7 +2265,7 @@ bool HtmlExport::CreateFrames() aStr.AppendAscii( "