summaryrefslogtreecommitdiff
path: root/editeng/source/items
diff options
context:
space:
mode:
authorJean-Noël Rouvignac <jn.rouvignac@gmail.com>2013-02-20 00:21:37 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-02-24 12:59:02 +0000
commit63b0ce97ba0f71c28a7880c741100b0240332e74 (patch)
tree9589db9bb4fd6e27acd750a549f7df71a169b928 /editeng/source/items
parent3648c3226d369ce7a547e48f824b876180559476 (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 'editeng/source/items')
-rw-r--r--editeng/source/items/frmitems.cxx8
-rw-r--r--editeng/source/items/itemtype.cxx10
2 files changed, 9 insertions, 9 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index a35808f8618a..c486f0d71099 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -95,18 +95,18 @@ inline void SetValueProp( XubString& rStr, const sal_uInt16 nValue,
const sal_uInt16 nProp )
{
if( 100 == nProp )
- rStr += String::CreateFromInt32( nValue );
+ rStr += OUString::number( nValue );
else
- ( rStr += String::CreateFromInt32( nProp )) += sal_Unicode('%');
+ ( rStr += OUString::number( nProp )) += sal_Unicode('%');
}
inline void SetValueProp( XubString& rStr, const short nValue,
const sal_uInt16 nProp )
{
if( 100 == nProp )
- rStr += String::CreateFromInt32( nValue );
+ rStr += OUString::number( nValue );
else
- ( rStr += String::CreateFromInt32( nProp )) += sal_Unicode('%');
+ ( rStr += OUString::number( nProp )) += sal_Unicode('%');
}
// -----------------------------------------------------------------------
diff --git a/editeng/source/items/itemtype.cxx b/editeng/source/items/itemtype.cxx
index 2e2b55c5d828..d3e2c9746286 100644
--- a/editeng/source/items/itemtype.cxx
+++ b/editeng/source/items/itemtype.cxx
@@ -79,7 +79,7 @@ XubString GetMetricText( long nVal, SfxMapUnit eSrcUnit, SfxMapUnit eDestUnit, c
case SFX_MAPUNIT_POINT:
case SFX_MAPUNIT_TWIP:
case SFX_MAPUNIT_PIXEL:
- return String::CreateFromInt32( (long)OutputDevice::LogicToLogic(
+ return OUString::number( (long)OutputDevice::LogicToLogic(
nVal, (MapUnit)eSrcUnit, (MapUnit)eDestUnit ));
default:
@@ -106,7 +106,7 @@ XubString GetMetricText( long nVal, SfxMapUnit eSrcUnit, SfxMapUnit eDestUnit, c
if ( nRet < nDiff )
sRet += sal_Unicode('0');
else
- sRet += String::CreateFromInt32( nRet / nDiff );
+ sRet += OUString::number( nRet / nDiff );
nRet %= nDiff;
if( 4 == nDigits )
{
@@ -162,11 +162,11 @@ XubString GetColorString( const Color& rCol )
{
sStr.AppendAscii(RTL_CONSTASCII_STRINGPARAM( "RGB" ));
sStr += sal_Unicode('(');
- sStr += String::CreateFromInt32( rCol.GetRed() );
+ sStr += OUString::number( rCol.GetRed() );
sStr += cpDelim;
- sStr += String::CreateFromInt32( rCol.GetGreen() );
+ sStr += OUString::number( rCol.GetGreen() );
sStr += cpDelim;
- sStr += String::CreateFromInt32( rCol.GetBlue() );
+ sStr += OUString::number( rCol.GetBlue() );
sStr += sal_Unicode(')');
}
return sStr;