diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-30 00:00:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-30 00:05:59 +0000 |
commit | 4a11a47103fcbd7646234fc9565a409b8055507e (patch) | |
tree | 126503725e0272c5e2eba7556887576629035577 /drawinglayer | |
parent | ce26903f7037c44a723716dfb38766ab9611c224 (diff) |
trivial empty-init String::Fill -> comphelper::padToLength
Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclprocessor2d.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
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 <comphelper/string.hxx> #include <drawinglayer/processor2d/vclprocessor2d.hxx> #include <drawinglayer/primitive2d/textprimitive2d.hxx> #include <drawinglayer/primitive2d/textdecoratedprimitive2d.hxx> @@ -54,6 +55,7 @@ #include <drawinglayer/primitive2d/wrongspellprimitive2d.hxx> #include <drawinglayer/primitive2d/pagepreviewprimitive2d.hxx> #include <tools/diagnose_ex.h> +#include <rtl/ustrbuf.hxx> #include <vcl/metric.hxx> #include <drawinglayer/primitive2d/textenumsprimitive2d.hxx> #include <drawinglayer/primitive2d/epsprimitive2d.hxx> @@ -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; } |