diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 18:23:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-02 08:39:14 +0200 |
commit | 91c836acea76cffb0e2d5df0d15fc94d84bfdc5a (patch) | |
tree | 24b688ec199566fd692aa7b7f22d772c1e484a8c /sw/source/ui | |
parent | 9d99dc8a835d66cbe27e4cbf5869e6704dd781f9 (diff) |
loplugin:stringadd in sw
Change-Id: I72e1cbc229a47660b2313f46898753e273b69d35
Reviewed-on: https://gerrit.libreoffice.org/79985
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/dbui/mmoutputtypepage.cxx | 7 | ||||
-rw-r--r-- | sw/source/ui/fldui/fldvar.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/misc/num.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/misc/outline.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/misc/pggrid.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/table/tautofmt.cxx | 3 |
6 files changed, 7 insertions, 16 deletions
diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx index d8766b8a3c9d..5221c096ff6e 100644 --- a/sw/source/ui/dbui/mmoutputtypepage.cxx +++ b/sw/source/ui/dbui/mmoutputtypepage.cxx @@ -421,9 +421,7 @@ void SwSendMailDialog::IterateMails() Image aInsertImg(StockImage::Yes, RID_BMP_FORMULA_CANCEL); OUString sMessage = m_sSendingTo; - OUString sTmp(pCurrentMailDescriptor->sEMail); - sTmp += "\t"; - sTmp += m_sFailed; + OUString sTmp = pCurrentMailDescriptor->sEMail + "\t" + m_sFailed; m_pStatus->InsertEntry( sMessage.replaceFirst("%1", sTmp), aInsertImg, aInsertImg); ++m_nSendCount; ++m_nErrorCount; @@ -508,8 +506,7 @@ void SwSendMailDialog::DocumentSent( uno::Reference< mail::XMailMessage> const & OUString sMessage = m_sSendingTo; OUString sTmp(xMessage->getRecipients()[0]); - sTmp += "\t"; - sTmp += bResult ? m_sCompleted : m_sFailed; + sTmp += "\t" + (bResult ? m_sCompleted : m_sFailed); m_pStatus->InsertEntry( sMessage.replaceFirst("%1", sTmp), aInsertImg, aInsertImg); ++m_nSendCount; if(!bResult) diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx index 99d6b1b8dcc4..2d9727084728 100644 --- a/sw/source/ui/fldui/fldvar.cxx +++ b/sw/source/ui/fldui/fldvar.cxx @@ -1216,8 +1216,7 @@ sal_uInt16 SwFieldVarPage::GetGroup() void SwFieldVarPage::FillUserData() { - OUString sData(USER_DATA_VERSION); - sData += ";"; + OUString sData = USER_DATA_VERSION ";"; sal_Int32 nTypeSel = m_xTypeLB->get_selected_index(); if( -1 == nTypeSel ) nTypeSel = USHRT_MAX; diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx index ae637765fbe5..b5bccf498633 100644 --- a/sw/source/ui/misc/num.cxx +++ b/sw/source/ui/misc/num.cxx @@ -125,8 +125,7 @@ SwNumPositionTabPage::SwNumPositionTabPage(weld::Container* pPage, weld::DialogC // insert levels for(sal_uInt16 i = 1; i <= MAXLEVEL; i++) m_xLevelLB->append_text(OUString::number(i)); - OUString sEntry("1 - "); - sEntry += OUString::number(MAXLEVEL); + OUString sEntry = "1 - " + OUString::number(MAXLEVEL); m_xLevelLB->append_text(sEntry); m_xLevelLB->select_text(sEntry); diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx index 5336288fe9a1..3eb0b9ea1da9 100644 --- a/sw/source/ui/misc/outline.cxx +++ b/sw/source/ui/misc/outline.cxx @@ -739,8 +739,7 @@ void SwOutlineSettingsTabPage::SetWrtShell(SwWrtShell* pShell) static_cast< sal_uInt16 >(RES_POOLCOLL_HEADLINE1 + i), OUString())); m_xLevelLB->append_text( OUString::number(i + 1) ); } - OUString sStr("1 - "); - sStr += OUString::number(MAXLEVEL); + OUString sStr = "1 - " + OUString::number(MAXLEVEL); m_xLevelLB->append_text(sStr); // query the texttemplates' outlining levels diff --git a/sw/source/ui/misc/pggrid.cxx b/sw/source/ui/misc/pggrid.cxx index 8eec83f45d8e..b36fba8169a4 100644 --- a/sw/source/ui/misc/pggrid.cxx +++ b/sw/source/ui/misc/pggrid.cxx @@ -325,9 +325,7 @@ void SwTextGridPage::UpdatePageSize(const SfxItemSet& rSet) void SwTextGridPage::SetLinesOrCharsRanges(weld::Label& rField, const sal_Int32 nValue ) { - OUString aFieldStr("( 1 -"); - aFieldStr += OUString::number(nValue); - aFieldStr += " )"; + OUString aFieldStr = "( 1 -" + OUString::number(nValue) + " )"; rField.set_label(aFieldStr); } diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx index da6ffbe0455a..3dcf725cab70 100644 --- a/sw/source/ui/table/tautofmt.cxx +++ b/sw/source/ui/table/tautofmt.cxx @@ -265,8 +265,7 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, AddHdl, weld::Button&, void) IMPL_LINK_NOARG(SwAutoFormatDlg, RemoveHdl, weld::Button&, void) { - OUString aMessage = m_aStrDelMsg; - aMessage += "\n\n"; + OUString aMessage = m_aStrDelMsg + "\n\n"; aMessage += m_xLbFormat->get_selected_text(); aMessage += "\n"; |