diff options
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() |