diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-30 15:10:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 08:26:49 +0200 |
commit | 03516c505eced337149782a67b2ad98c246929b3 (patch) | |
tree | c499c7912cf65ebbf13c729782a93adc3f856a55 /l10ntools | |
parent | 9b3643820bf821c8be728ed20a8cb7ed05cabef2 (diff) |
loplugin:stringadd in helpcompiler..oox
Change-Id: I858870d883de10a673d7ce2798bda8c8f511cee5
Reviewed-on: https://gerrit.libreoffice.org/79889
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/helper.cxx | 5 | ||||
-rw-r--r-- | l10ntools/source/merge.cxx | 7 |
2 files changed, 2 insertions, 10 deletions
diff --git a/l10ntools/source/helper.cxx b/l10ntools/source/helper.cxx index e84b029869a7..84b454bde587 100644 --- a/l10ntools/source/helper.cxx +++ b/l10ntools/source/helper.cxx @@ -121,12 +121,9 @@ OString UnQuotHTML( const OString& rString ) bool isWellFormedXML( OString const & text ) { xmlDocPtr doc; - OString content; bool result = true; - content = "<root>"; - content += text; - content += "</root>"; + OString content = "<root>" + text + "</root>"; doc = xmlParseMemory(content.getStr(),static_cast<int>(content.getLength())); if (doc == nullptr) { result = false; diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx index aff23bafdd07..aad0388bd23d 100644 --- a/l10ntools/source/merge.cxx +++ b/l10ntools/source/merge.cxx @@ -322,12 +322,7 @@ OString MergeDataFile::CreateKey(const OString& rTYP, const OString& rGID, const OString& rLID, const OString& rFilename, bool bCaseSensitive) { static const char sStroke[] = "-"; - OString sKey( rTYP ); - sKey += sStroke; - sKey += rGID; - sKey += sStroke; - sKey += rLID; - sKey += sStroke; + OString sKey = rTYP + sStroke + rGID + sStroke + rLID + sStroke; sKey += lcl_NormalizeFilename(rFilename); if(bCaseSensitive) return sKey; // officecfg case sensitive identifier |