summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/dlgunit.hxx3
-rw-r--r--svx/source/stbctrls/pszctrl.cxx4
2 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/dialog/dlgunit.hxx b/svx/source/dialog/dlgunit.hxx
index 3fcb099a0613..b8ebed52fe92 100644
--- a/svx/source/dialog/dlgunit.hxx
+++ b/svx/source/dialog/dlgunit.hxx
@@ -30,7 +30,8 @@
inline String GetUnitString( long nVal_100, FieldUnit eFieldUnit, sal_Unicode cSep )
{
- String aVal = UniString::CreateFromInt64( MetricField::ConvertValue( nVal_100, 2, MAP_100TH_MM, eFieldUnit ) );
+ String aVal = rtl::OUString::valueOf(static_cast<sal_Int64>(
+ MetricField::ConvertValue(nVal_100, 2, MAP_100TH_MM, eFieldUnit)));
while( aVal.Len() < 3 )
aVal.Insert( sal_Unicode('0'), 0 );
diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx
index 9c8a3e3bb5b9..1356572b58b2 100644
--- a/svx/source/stbctrls/pszctrl.cxx
+++ b/svx/source/stbctrls/pszctrl.cxx
@@ -84,7 +84,7 @@ String SvxPosSizeStatusBarControl::GetMetricStr_Impl( long nVal )
if ( nConvVal < 0 && ( nConvVal / 100 == 0 ) )
sMetric += '-';
- sMetric += String::CreateFromInt64( nConvVal / 100 );
+ sMetric += rtl::OUString::valueOf(nConvVal / 100);
if( FUNIT_NONE != eOutUnit )
{
@@ -95,7 +95,7 @@ String SvxPosSizeStatusBarControl::GetMetricStr_Impl( long nVal )
nFract *= -1;
if ( nFract < 10 )
sMetric += '0';
- sMetric += String::CreateFromInt64( nFract );
+ sMetric += rtl::OUString::valueOf(nFract);
}
return sMetric;