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 --- drawinglayer/source/processor2d/vclprocessor2d.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'drawinglayer') diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index a04742fe67ed..b82235b28882 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -26,6 +26,7 @@ * ************************************************************************/ +#include #include #include #include @@ -54,6 +55,7 @@ #include #include #include +#include #include #include #include @@ -270,9 +272,9 @@ namespace drawinglayer if ( nWidth ) nChars = nWidthToFill / nWidth; - String aFilled; - aFilled.Fill( (sal_uInt16)nChars, aText.GetChar( 0 ) ); - aText = aFilled; + rtl::OUStringBuffer aFilled; + comphelper::string::padToLength(aFilled, (sal_uInt16)nChars, aText.GetChar(0)); + aText = aFilled.makeStringAndClear(); nPos = 0; nLen = nChars; } -- cgit