From b36d555440b86d8293b188e4d99ec8682a2139a5 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 26 Feb 2012 20:45:18 +0000 Subject: drop UniString::CreateFromInt64 --- svx/source/dialog/dlgunit.hxx | 3 ++- svx/source/stbctrls/pszctrl.cxx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'svx') 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( + 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; -- cgit