From 727200b81da0de810dfe623bf52575540f40adbe Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 Sep 2019 15:09:07 +0200 Subject: loplugin:stringadd in basctl..cui Change-Id: I2fdeb7eb3ead3512ad6d3fe793305038ab3aa7ae Reviewed-on: https://gerrit.libreoffice.org/79886 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/source/customize/SvxConfigPageHelper.cxx | 3 +-- cui/source/dialogs/hldoctp.cxx | 3 +-- cui/source/tabpages/grfpage.cxx | 3 +-- cui/source/tabpages/tpgradnt.cxx | 3 +-- cui/source/tabpages/tphatch.cxx | 3 +-- cui/source/tabpages/tppattern.cxx | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) (limited to 'cui') diff --git a/cui/source/customize/SvxConfigPageHelper.cxx b/cui/source/customize/SvxConfigPageHelper.cxx index 10d2beb8fa55..cee19268467e 100644 --- a/cui/source/customize/SvxConfigPageHelper.cxx +++ b/cui/source/customize/SvxConfigPageHelper.cxx @@ -196,8 +196,7 @@ sal_uInt32 SvxConfigPageHelper::generateRandomValue() OUString SvxConfigPageHelper::generateCustomURL( SvxEntries* entries ) { - OUString url = ITEM_TOOLBAR_URL; - url += CUSTOM_TOOLBAR_STR; + OUString url = OUStringLiteral(ITEM_TOOLBAR_URL) + CUSTOM_TOOLBAR_STR; // use a random number to minimize possible clash with existing custom toolbars url += OUString::number( generateRandomValue(), 16 ); diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx index c0dbd18ec0ee..4fb9aad812f8 100644 --- a/cui/source/dialogs/hldoctp.cxx +++ b/cui/source/dialogs/hldoctp.cxx @@ -114,8 +114,7 @@ OUString SvxHyperlinkDocTp::GetCurrentURL () const if( !aStrMark.isEmpty() ) { - aStrURL += sHash; - aStrURL += aStrMark; + aStrURL += sHash + aStrMark; } return aStrURL; diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx index 21314063bf2b..f76d2da53fe2 100644 --- a/cui/source/tabpages/grfpage.cxx +++ b/cui/source/tabpages/grfpage.cxx @@ -642,8 +642,7 @@ void SvxGrfCropPage::GraphicHasChanged( bool bFound ) (static_cast(aOrigSize.Width())/TWIP_TO_INCH)+0.5)); sal_Int32 ay = sal_Int32(floor(static_cast(aOrigPixelSize.Height()) / (static_cast(aOrigSize.Height())/TWIP_TO_INCH)+0.5)); - sTemp += " "; - sTemp += CuiResId( RID_SVXSTR_PPI ); + sTemp += " " + CuiResId( RID_SVXSTR_PPI ); OUString sPPI = OUString::number(ax); if (abs(ax - ay) > 1) { sPPI += OUStringLiteral1(0x00D7) + OUString::number(ay); diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx index 562598dce7d2..f8affa0f044e 100644 --- a/cui/source/tabpages/tpgradnt.cxx +++ b/cui/source/tabpages/tpgradnt.cxx @@ -144,8 +144,7 @@ void SvxGradientTabPage::ActivatePage( const SfxItemSet& rSet ) // determining (and possibly cutting) the name and // displaying it in the GroupBox - OUString aString( CuiResId( RID_SVXSTR_TABLE ) ); - aString += ": "; + OUString aString = CuiResId( RID_SVXSTR_TABLE ) + ": "; INetURLObject aURL( m_pGradientList->GetPath() ); aURL.Append( m_pGradientList->GetName() ); diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx index e3813558de3d..aeb5d9c85fcb 100644 --- a/cui/source/tabpages/tphatch.cxx +++ b/cui/source/tabpages/tphatch.cxx @@ -145,8 +145,7 @@ void SvxHatchTabPage::ActivatePage( const SfxItemSet& rSet ) // determining (possibly cutting) the name // and displaying it in the GroupBox - OUString aString( CuiResId( RID_SVXSTR_TABLE ) ); - aString += ": "; + OUString aString = CuiResId( RID_SVXSTR_TABLE ) + ": "; INetURLObject aURL( m_pHatchingList->GetPath() ); aURL.Append( m_pHatchingList->GetName() ); diff --git a/cui/source/tabpages/tppattern.cxx b/cui/source/tabpages/tppattern.cxx index 6679a411bf48..713a7c3a6628 100644 --- a/cui/source/tabpages/tppattern.cxx +++ b/cui/source/tabpages/tppattern.cxx @@ -142,8 +142,7 @@ void SvxPatternTabPage::ActivatePage( const SfxItemSet& rSet ) // determining (possibly cutting) the name and // displaying it in the GroupBox - OUString aString( CuiResId( RID_SVXSTR_TABLE ) ); - aString += ": "; + OUString aString = CuiResId( RID_SVXSTR_TABLE ) + ": "; INetURLObject aURL( m_pPatternList->GetPath() ); aURL.Append( m_pPatternList->GetName() ); -- cgit