summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorJean-Noël Rouvignac <jn.rouvignac@gmail.com>2013-02-20 00:17:30 +0100
committerMichael Stahl <mstahl@redhat.com>2013-02-22 17:27:53 +0000
commitbb5fa449378d6535932d39f2357c06e181647346 (patch)
treea6bb8252b2672e6a3edf42e0a7e8caeb9a19b247 /sc/source/core/data
parent6119e15c8b2b19c6ea3c271fb1c9d7e047902e77 (diff)
fdo#38838 search replace for String::CreateFromInt32().
I ran the following code replace: s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/ Change-Id: I45edaec4de2481ad45f9bcae2e280d5aca487714 Reviewed-on: https://gerrit.libreoffice.org/2281 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/docpool.cxx4
-rw-r--r--sc/source/core/data/dpdimsave.cxx2
-rw-r--r--sc/source/core/data/dputil.cxx2
-rw-r--r--sc/source/core/data/drwlayer.cxx2
-rw-r--r--sc/source/core/data/global.cxx4
-rw-r--r--sc/source/core/data/stlpool.cxx2
-rw-r--r--sc/source/core/data/table4.cxx4
7 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index 535a48061b02..e7f008c7bc87 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -917,7 +917,7 @@ SfxItemPresentation ScDocumentPool::GetPresentation(
case SFX_ITEM_PRESENTATION_NAMELESS:
{
String aPages( ScGlobal::GetRscString( STR_SCATTR_PAGE_SCALE_PAGES ) );
- aPages.SearchAndReplaceAscii( "%1", String::CreateFromInt32( nPagNo ) );
+ aPages.SearchAndReplaceAscii( "%1", OUString::number( nPagNo ) );
rText += aPages;
}
break;
@@ -946,7 +946,7 @@ SfxItemPresentation ScDocumentPool::GetPresentation(
rText = ScGlobal::GetRscString(STR_SCATTR_PAGE_FIRSTPAGENO) + aStrSep;
// break; // DURCHFALLEN!!!
case SFX_ITEM_PRESENTATION_NAMELESS:
- rText += String::CreateFromInt32( nPagNo );
+ rText += OUString::number( nPagNo );
break;
default:
{
diff --git a/sc/source/core/data/dpdimsave.cxx b/sc/source/core/data/dpdimsave.cxx
index 9cdb2a75e2f6..5d795b946fb0 100644
--- a/sc/source/core/data/dpdimsave.cxx
+++ b/sc/source/core/data/dpdimsave.cxx
@@ -171,7 +171,7 @@ rtl::OUString ScDPSaveGroupDimension::CreateGroupName(const rtl::OUString& rPref
while ( nAdd <= nMaxAdd )
{
String aGroupName( rPrefix );
- aGroupName.Append( String::CreateFromInt32( nAdd ) );
+ aGroupName.Append( OUString::number( nAdd ) );
bool bExists = false;
// look for existing groups
diff --git a/sc/source/core/data/dputil.cxx b/sc/source/core/data/dputil.cxx
index 269148b20061..17bb747fbcbc 100644
--- a/sc/source/core/data/dputil.cxx
+++ b/sc/source/core/data/dputil.cxx
@@ -50,7 +50,7 @@ const sal_uInt16 SC_DP_LEAPYEAR = 1648; // arbitrary leap year for date calc
rtl::OUString getTwoDigitString(sal_Int32 nValue)
{
- String aRet = String::CreateFromInt32( nValue );
+ String aRet = OUString::number( nValue );
if ( aRet.Len() < 2 )
aRet.Insert( (sal_Unicode)'0', 0 );
return aRet;
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 4b4198cfe779..3f2805fbb69b 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -1736,7 +1736,7 @@ String ScDrawLayer::GetNewGraphicName( long* pnCounter ) const
{
++nId;
aGraphicName = aBase;
- aGraphicName += String::CreateFromInt32( nId );
+ aGraphicName += OUString::number( nId );
bThere = ( GetNamedObject( aGraphicName, 0, nDummy ) != NULL );
}
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 0d0a3d0b5536..8188b5deed28 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -399,7 +399,7 @@ String ScGlobal::GetErrorString(sal_uInt16 nErrNumber)
case errIllegalFPOperation : nErrNumber = STR_NUM_ERROR; break;
default : sResStr = GetRscString(STR_ERROR_STR);
- sResStr += String::CreateFromInt32( nErrNumber );
+ sResStr += OUString::number( nErrNumber );
nErrNumber = 0;
break;
}
@@ -733,7 +733,7 @@ String ScGlobal::GetCharsetString( CharSet eVal )
case RTL_TEXTENCODING_DONTKNOW: pChar = "SYSTEM"; break;
// new string of TextEncoding value
default:
- return String::CreateFromInt32( eVal );
+ return OUString::number( eVal );
}
return rtl::OUString::createFromAscii(pChar);
}
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index ce17027e7237..0dc76c3b411a 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -96,7 +96,7 @@ SfxStyleSheetBase& ScStyleSheetPool::Make( const String& rName,
for ( sal_uInt32 nAdd = 1; nAdd <= nCount; nAdd++ )
{
String aNewName = ScGlobal::GetRscString(STR_STYLENAME_STANDARD);
- aNewName += String::CreateFromInt32( nAdd );
+ aNewName += OUString::number( nAdd );
if ( Find( aNewName, eFam ) == NULL )
return SfxStyleSheetPool::Make( aNewName, eFam, mask, nPos );
}
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index 5c870c2708c7..80a3ebba5ab2 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -129,10 +129,10 @@ static short lcl_DecompValueString( String& aValue, sal_Int32& nVal, sal_uInt16*
static String lcl_ValueString( sal_Int32 nValue, sal_uInt16 nMinDigits )
{
if ( nMinDigits <= 1 )
- return String::CreateFromInt32( nValue ); // simple case...
+ return OUString::number( nValue ); // simple case...
else
{
- String aStr = String::CreateFromInt32( Abs( nValue ) );
+ String aStr = OUString::number( Abs( nValue ) );
if ( aStr.Len() < nMinDigits )
{
OUStringBuffer aZero;