diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-02-20 00:21:37 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-02-24 12:59:02 +0000 |
commit | 63b0ce97ba0f71c28a7880c741100b0240332e74 (patch) | |
tree | 9589db9bb4fd6e27acd750a549f7df71a169b928 /tools | |
parent | 3648c3226d369ce7a547e48f824b876180559476 (diff) |
fdo#38838 searched, replaced and removed String::CreateFromInt32().
I ran the following code replace:
s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/
And finally removed String::CreateFromInt32().
Change-Id: I53b26a59c68511ae09f0ee82cfade210d0de3fa5
Reviewed-on: https://gerrit.libreoffice.org/2279
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/string.hxx | 1 | ||||
-rw-r--r-- | tools/source/generic/bigint.cxx | 10 | ||||
-rw-r--r-- | tools/source/string/tustring.cxx | 5 |
3 files changed, 5 insertions, 11 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx index ce81a613ac8c..6be3d7db5709 100644 --- a/tools/inc/tools/string.hxx +++ b/tools/inc/tools/string.hxx @@ -167,7 +167,6 @@ public: { return Append( UniString( concat ) ); } #endif - static UniString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 ); static const UniString& EmptyString(); sal_Int32 ToInt32() const; sal_Int64 ToInt64() const; diff --git a/tools/source/generic/bigint.cxx b/tools/source/generic/bigint.cxx index 9247b1fec667..2aedb0f46f00 100644 --- a/tools/source/generic/bigint.cxx +++ b/tools/source/generic/bigint.cxx @@ -611,7 +611,7 @@ rtl::OUString BigInt::GetString() const String aString; if ( !bIsBig ) - aString = String::CreateFromInt32( nVal ); + aString = OUString::number( nVal ); else { BigInt aTmp( *this ); @@ -627,20 +627,20 @@ rtl::OUString BigInt::GetString() const String aStr = aString; if ( a.nVal < 100000000L ) { // leading 0s - aString = String::CreateFromInt32( a.nVal + 1000000000L ); + aString = OUString::number( a.nVal + 1000000000L ); aString.Erase(0,1); } else - aString = String::CreateFromInt32( a.nVal ); + aString = OUString::number( a.nVal ); aString += aStr; } while( aTmp.bIsBig ); String aStr = aString; if ( bIsNeg ) - aString = String::CreateFromInt32( -aTmp.nVal ); + aString = OUString::number( -aTmp.nVal ); else - aString = String::CreateFromInt32( aTmp.nVal ); + aString = OUString::number( aTmp.nVal ); aString += aStr; } diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx index f8fc18a0259f..a66dc6026452 100644 --- a/tools/source/string/tustring.cxx +++ b/tools/source/string/tustring.cxx @@ -49,11 +49,6 @@ DBG_NAME( UniString ) UniString::UniString(char c): mpData(ImplAllocData(1)) { mpData->maStr[0] = c; } -UniString UniString::CreateFromInt32( sal_Int32 n, sal_Int16 nRadix ) -{ - return rtl::OUString::valueOf(n, nRadix); -} - namespace { struct Empty : public rtl::Static< const UniString, Empty> {}; } const UniString& UniString::EmptyString() |