diff options
Diffstat (limited to 'sc/source/core/data/dputil.cxx')
-rw-r--r-- | sc/source/core/data/dputil.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/dputil.cxx b/sc/source/core/data/dputil.cxx index 17bb747fbcbc..dc78e3b687ca 100644 --- a/sc/source/core/data/dputil.cxx +++ b/sc/source/core/data/dputil.cxx @@ -50,9 +50,9 @@ const sal_uInt16 SC_DP_LEAPYEAR = 1648; // arbitrary leap year for date calc rtl::OUString getTwoDigitString(sal_Int32 nValue) { - String aRet = OUString::number( nValue ); - if ( aRet.Len() < 2 ) - aRet.Insert( (sal_Unicode)'0', 0 ); + OUString aRet = OUString::number( nValue ); + if ( aRet.getLength() < 2 ) + aRet = "0" + aRet; return aRet; } |