summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/odf
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-30 10:15:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-30 11:38:07 +0000
commitf24d38de3c23479e79768cd3fcfe37692cee27e4 (patch)
tree2a7804fa21648bb9cfabab827f8e65432ef358c9 /sdext/source/pdfimport/odf
parentdb9912d824c1d621fdc409b9cdd6c79caefe1327 (diff)
loplugin:stringadd in sd/sdext
when applying my upcoming patch to also consider O[U]StringBuffer Change-Id: Ic95e72e1c857c6814d6e25b9820494cdfa535465 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149746 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source/pdfimport/odf')
-rw-r--r--sdext/source/pdfimport/odf/odfemitter.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sdext/source/pdfimport/odf/odfemitter.cxx b/sdext/source/pdfimport/odf/odfemitter.cxx
index 71bc293aad23..1ff92deb73a4 100644
--- a/sdext/source/pdfimport/odf/odfemitter.cxx
+++ b/sdext/source/pdfimport/odf/odfemitter.cxx
@@ -64,8 +64,7 @@ void OdfEmitter::beginTag( const char* pTag, const PropertyMap& rProperties )
{
OSL_PRECOND(pTag,"Invalid tag string");
- OUStringBuffer aElement;
- aElement.append("<");
+ OUStringBuffer aElement("<");
aElement.appendAscii(pTag);
aElement.append(" ");
@@ -105,8 +104,7 @@ void OdfEmitter::write( const OUString& rText )
void OdfEmitter::endTag( const char* pTag )
{
- OUStringBuffer aElement;
- aElement.append("</");
+ OUStringBuffer aElement("</");
aElement.appendAscii(pTag);
aElement.append(">");
write(aElement.makeStringAndClear());