summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-30 00:00:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-10-30 00:05:59 +0000
commit4a11a47103fcbd7646234fc9565a409b8055507e (patch)
tree126503725e0272c5e2eba7556887576629035577 /svtools/source
parentce26903f7037c44a723716dfb38766ab9611c224 (diff)
trivial empty-init String::Fill -> comphelper::padToLength
Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/control/fmtfield.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/control/fmtfield.cxx b/svtools/source/control/fmtfield.cxx
index acaaa1e95433..3d543e28ac41 100644
--- a/svtools/source/control/fmtfield.cxx
+++ b/svtools/source/control/fmtfield.cxx
@@ -44,6 +44,7 @@
#include <unotools/syslocale.hxx>
#include <map>
#include <rtl/math.hxx>
+#include <rtl/ustrbuf.hxx>
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
@@ -1253,9 +1254,9 @@ void DoubleCurrencyField::UpdateCurrencyFormat()
{
sNewFormat += aLocaleInfo.getNumDecimalSep();
- XubString sTemp;
- sTemp.Fill(nDigits, '0');
- sNewFormat += sTemp;
+ rtl::OUStringBuffer sTemp;
+ comphelper::string::padToLength(sTemp, nDigits, '0');
+ sNewFormat += sTemp.makeStringAndClear();
}
if (getPrependCurrSym())