diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 18:22:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-02 08:01:26 +0200 |
commit | 32617df2f59b05ca5942fd18b3440ec834982565 (patch) | |
tree | 348c5a5671f7a81b86d0d436c33c224e2cb49d5f /svx/source/fmcomp | |
parent | fe3d9961e32fd7230e21716793adaddffdf2463e (diff) |
loplugin:stringadd in svx
Change-Id: I47944e589c5261d26d5ef0c116a9173bf6ed1f03
Reviewed-on: https://gerrit.libreoffice.org/79983
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index bd44a83b3f50..0c3a7ce185dc 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -455,9 +455,7 @@ sal_uInt16 DbGridControl::NavigationBar::ArrangeControls() // count an extra hairspace (U+200A) left and right const OUString sevenDigits(m_aAbsolute->CreateFieldText(6000000)); const OUString hairSpace(u'\x200A'); - OUString textPattern(hairSpace); - textPattern += sevenDigits; - textPattern += hairSpace; + OUString textPattern = hairSpace + sevenDigits + hairSpace; nTextWidth = m_aAbsolute->GetTextWidth(textPattern); m_aAbsolute->SetPosPixel(Point(nX,nY)); m_aAbsolute->SetSizePixel(Size(nTextWidth, nH)); @@ -741,8 +739,8 @@ void DbGridControl::NavigationBar::SetState(DbGridControlNavigationBarState nWhi // add the number of selected rows, if applicable if (pParent->GetSelectRowCount()) { - OUString aExtendedInfo(aText); - aExtendedInfo += " ("; + OUString aExtendedInfo = aText + + " ("; aExtendedInfo += m_aAbsolute->CreateFieldText(pParent->GetSelectRowCount()); aExtendedInfo += ")"; pWnd->SetText(aExtendedInfo); |