diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-10 16:23:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-11 07:18:11 +0200 |
commit | cdbac696fb0cbb1d09645bc02799eed5504b192b (patch) | |
tree | 25ef63dbfb17fdafcd073cbc0c1d88bd5759e408 /sax | |
parent | cfd06eb99b8f366bfe96e4a6d3112e4c6057098b (diff) |
simplify "a = a +" to "a +="
mostly so that my stringadd loplugin can point out places to improve
Change-Id: I9920ee1c99cdb6b811ba67ff9d8e32aa261884b5
Reviewed-on: https://gerrit.libreoffice.org/80618
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/qa/cppunit/xmlimport.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx index 0762c249bdd4..63415c8b0b39 100644 --- a/sax/qa/cppunit/xmlimport.cxx +++ b/sax/qa/cppunit/xmlimport.cxx @@ -156,15 +156,15 @@ void SAL_CALL TestDocumentHandler::startElement( const OUString& aName, const Re OUString sAttrValue = xAttribs->getValueByIndex(i); OUString sAttrName = canonicalform(xAttribs->getNameByIndex(i), sAttrValue, false); if (!sAttrName.isEmpty()) - sAttributes = sAttributes + sAttrName + sAttrValue; + sAttributes += sAttrName + sAttrValue; } - m_aStr = m_aStr + canonicalform(aName, "", true) + sAttributes; + m_aStr += canonicalform(aName, "", true) + sAttributes; } void SAL_CALL TestDocumentHandler::endElement( const OUString& aName ) { - m_aStr = m_aStr + canonicalform(aName, "", true); + m_aStr += canonicalform(aName, "", true); sal_uInt16 nPopQty = m_aCountStack.top(); for (sal_uInt16 i=0; i<nPopQty; i++) m_aNamespaceStack.pop_back(); @@ -174,19 +174,19 @@ void SAL_CALL TestDocumentHandler::endElement( const OUString& aName ) void SAL_CALL TestDocumentHandler::characters( const OUString& aChars ) { - m_aStr = m_aStr + aChars; + m_aStr += aChars; } void SAL_CALL TestDocumentHandler::ignorableWhitespace( const OUString& aWhitespaces ) { - m_aStr = m_aStr + aWhitespaces; + m_aStr += aWhitespaces; } void SAL_CALL TestDocumentHandler::processingInstruction( const OUString& aTarget, const OUString& aData ) { - m_aStr = m_aStr + aTarget + aData; + m_aStr += aTarget + aData; } |