diff options
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 |