summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-11-02 18:59:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-11-03 17:11:14 +0100
commitab285c743afa1c8769581871d7b56374fd8c49f1 (patch)
treed5628df49fb4db29d474e5e7b7cef4072c33153a /lotuswordpro
parentf4544f3903fed3a656e3cd57e1bd83582e024b96 (diff)
loplugin:stringadd
tweak the plugin to be more permissive, then validate by hand afterwards Change-Id: I40c5c911fe6ff7e45baaca372abf7dac211d9654 Reviewed-on: https://gerrit.libreoffice.org/81942 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpbookmarkmgr.cxx6
-rw-r--r--lotuswordpro/source/filter/lwptblformula.cxx9
2 files changed, 6 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwpbookmarkmgr.cxx b/lotuswordpro/source/filter/lwpbookmarkmgr.cxx
index 3ce1ef05355e..140ba4f499b3 100644
--- a/lotuswordpro/source/filter/lwpbookmarkmgr.cxx
+++ b/lotuswordpro/source/filter/lwpbookmarkmgr.cxx
@@ -65,8 +65,7 @@ void LwpBookmarkMgr::AddXFBookmarkStart(const OUString& sName,XFBookmarkStart* p
else //have exist the same bookmark name
{
auto xFind = iter->second;
- OUString totalName = xFind->GetDivision() + ":";
- totalName += xFind->GetName();
+ OUString totalName = xFind->GetDivision() + ":" + xFind->GetName();
xFind->SetName(totalName);
m_MapStart[totalName] = xFind;
m_MapStart[sName] = pMark;
@@ -82,8 +81,7 @@ void LwpBookmarkMgr::AddXFBookmarkEnd(const OUString& sName,XFBookmarkEnd* pMark
else //have exist the same bookmark name
{
auto xFind = iter->second;
- OUString totalName = xFind->GetDivision() + ":";
- totalName += xFind->GetName();
+ OUString totalName = xFind->GetDivision() + ":" + xFind->GetName();
xFind->SetName(totalName);
m_MapEnd[totalName] = xFind;
m_MapEnd[sName] = pMark;
diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx
index fa8f39fa0bb4..f79bcaab6bcb 100644
--- a/lotuswordpro/source/filter/lwptblformula.cxx
+++ b/lotuswordpro/source/filter/lwptblformula.cxx
@@ -461,9 +461,8 @@ OUString LwpFormulaOp::ToString(LwpTableLayout* pCellsMap)
aFormula += m_aArgs[1]->ToArgString(pCellsMap) + " ";
OUString aFuncName = LwpFormulaTools::GetName(m_nTokenType);
- aFormula += aFuncName + " ";
-
- aFormula += m_aArgs[0]->ToArgString(pCellsMap);
+ aFormula += aFuncName + " " +
+ m_aArgs[0]->ToArgString(pCellsMap);
}
else
{
@@ -481,8 +480,8 @@ OUString LwpFormulaUnaryOp::ToString(LwpTableLayout* pCellsMap)
if (1==m_aArgs.size())
{
OUString aFuncName = LwpFormulaTools::GetName(m_nTokenType);
- aFormula += aFuncName;
- aFormula += m_aArgs[0]->ToArgString(pCellsMap);
+ aFormula += aFuncName +
+ m_aArgs[0]->ToArgString(pCellsMap);
}
else
{