summaryrefslogtreecommitdiff
path: root/cppcanvas/source/mtfrenderer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-28 11:28:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-28 17:22:52 +0200
commitd407304544cdb2edc3cbdb4e56d49f3ceda79c38 (patch)
tree765668628540687b669d67b14d824adb893c1308 /cppcanvas/source/mtfrenderer
parentfa87224130a4ab6c4b79f993cc990adc4be0465b (diff)
loplugin:stringloop cui,dbaccess
Change-Id: I32b63d2435d36b869823ea022ebd7f8347a46ea0 Reviewed-on: https://gerrit.libreoffice.org/58211 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas/source/mtfrenderer')
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index e43192869947..b67e1e9def05 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -978,9 +978,9 @@ namespace cppcanvas
nMaxWidth += nWidth + 1;
long nFullStrikeoutWidth = 0;
- OUString aStrikeoutText;
+ OUStringBuffer aStrikeoutText;
while( (nFullStrikeoutWidth+=nStrikeoutWidth ) < nMaxWidth+1 )
- aStrikeoutText += OUStringLiteral1(pChars[0]);
+ aStrikeoutText.append(pChars[0]);
sal_Int32 nLen = aStrikeoutText.getLength();
@@ -1008,9 +1008,9 @@ namespace cppcanvas
aShadowOffset,
aShadowColor,
aTextFillColor,
- aStrikeoutText,
+ aStrikeoutText.makeStringAndClear(),
0/*nStartPos*/,
- aStrikeoutText.getLength(),
+ nLen,
pStrikeoutCharWidths,
rParms.mrVDev,
rParms.mrCanvas,