diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-26 20:45:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-27 09:45:57 +0000 |
commit | b36d555440b86d8293b188e4d99ec8682a2139a5 (patch) | |
tree | 85fba385e1c021c3b2d86bc8922c5980b4abe9ff /svx | |
parent | d6100ba273e7d73cc4b00a378ce5bad49559943b (diff) |
drop UniString::CreateFromInt64
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/dlgunit.hxx | 3 | ||||
-rw-r--r-- | svx/source/stbctrls/pszctrl.cxx | 4 |
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; |