summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-12-15 12:02:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-12-17 09:35:24 +0000
commit0d5644bbe90e87ccd646276bfc545c3201caa005 (patch)
tree3f8870ee1ce05184db0c71b1d8b7fc08fa581177 /sc
parent2be589381e8e8969764e0de1ad079fca959afb8a (diff)
UniString::Fill -> OUStringBuffer::padToLength
none of these strings starts out before "Fill" longer than the size they are asked to be filled to so there are no trailing unfilled bits to consider all of which means that we can get rid of UniString::Fill now Change-Id: I8da21e9787017da9243a2c1d7118d3fbcca2a7fb
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table4.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index 4aec7dfea954..1b9debb94074 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -23,6 +23,7 @@
#endif
#include "scitems.hxx"
+#include <comphelper/string.hxx>
#include <svx/algitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/brshitem.hxx>
@@ -138,9 +139,9 @@ static String lcl_ValueString( sal_Int32 nValue, sal_uInt16 nMinDigits )
String aStr = String::CreateFromInt32( Abs( nValue ) );
if ( aStr.Len() < nMinDigits )
{
- String aZero;
- aZero.Fill( nMinDigits - aStr.Len(), '0' );
- aStr.Insert( aZero, 0 );
+ OUStringBuffer aZero;
+ comphelper::string::padToLength(aZero, nMinDigits - aStr.Len(), '0');
+ aStr.Insert(aZero.makeStringAndClear(), 0);
}
// nMinDigits doesn't include the '-' sign -> add after inserting zeros
if ( nValue < 0 )