From 4a11a47103fcbd7646234fc9565a409b8055507e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 30 Oct 2012 00:00:51 +0000 Subject: trivial empty-init String::Fill -> comphelper::padToLength Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e --- svtools/source/control/fmtfield.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'svtools') 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 #include #include +#include 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()) -- cgit