diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-23 16:07:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-27 14:07:56 +0200 |
commit | c7c6f0af6c836ebe0968967a1e7c8320b0ac17d6 (patch) | |
tree | 4bc5b2fa623b9765b88bbfe7de10a7590c87d5c8 /unoxml | |
parent | 99482297c7dd497e41fad2e7193759043e305101 (diff) |
loplugin:stringadd convert chained append to +
which can use the more efficient *StringConcat
Also fix a crash in stringview plugin which
started happening while I working on this.
Change-Id: I91a5b9b7707d1594d27d80b73930f5afac8ae608
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114568
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/rdf/librdf_repository.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx index 85b05260484a..7b4461aca83a 100644 --- a/unoxml/source/rdf/librdf_repository.cxx +++ b/unoxml/source/rdf/librdf_repository.cxx @@ -2150,9 +2150,9 @@ librdf_TypeConverter::extractResourceToCacheKey_NoLock( } uno::Reference< rdf::XBlankNode > xBlankNode(i_xResource, uno::UNO_QUERY); if (xBlankNode.is()) { - rBuffer.append("BlankNode ").append(xBlankNode->getStringValue()); + rBuffer.append("BlankNode " + xBlankNode->getStringValue()); } else { // assumption: everything else is URI - rBuffer.append("URI ").append(i_xResource->getStringValue()); + rBuffer.append("URI " + i_xResource->getStringValue()); } } @@ -2242,10 +2242,10 @@ librdf_TypeConverter::extractNodeToCacheKey_NoLock( if (!xLiteral.is()) { return; } - rBuffer.append("Literal ").append(xLiteral->getValue()).append("\t").append(xLiteral->getLanguage()); + rBuffer.append("Literal " + xLiteral->getValue() + "\t" + xLiteral->getLanguage()); const uno::Reference< rdf::XURI > xType(xLiteral->getDatatype()); if (xType.is()) - rBuffer.append("\t").append(xType->getStringValue()); + rBuffer.append("\t" + xType->getStringValue()); } // create blank or URI or literal node |