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 /stoc/source/implementationregistration/implreg.cxx | |
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 'stoc/source/implementationregistration/implreg.cxx')
-rw-r--r-- | stoc/source/implementationregistration/implreg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx index c3d0f1e38820..730dd7febdd8 100644 --- a/stoc/source/implementationregistration/implreg.cxx +++ b/stoc/source/implementationregistration/implreg.cxx @@ -194,7 +194,7 @@ void prepareLink( const Reference < XSimpleRegistry > & xDest, if (pShortName) { - linkRefName = linkRefName + link.copy(pShortName - pTmpName + 1); + linkRefName += link.copy(pShortName - pTmpName + 1); linkName = link.copy(0, pShortName - pTmpName); } @@ -515,7 +515,7 @@ void prepareUserKeys(const Reference < XSimpleRegistry >& xDest, OUString linkTarget = xKey->getLinkTarget(relativKey); OUString linkName(xKey->getKeyName().copy(xUnoKey->getKeyName().getLength())); - linkName = linkName + "/" + relativKey; + linkName += "/" + relativKey; if (bRegister) { |