summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 15:09:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 09:22:23 +0200
commit727200b81da0de810dfe623bf52575540f40adbe (patch)
tree3ba4786631faffd79bb20ae14a7b986a842aeda8 /cui
parent2113f3e7ee0ca5c07f224a54b627777b3a7b5fb0 (diff)
loplugin:stringadd in basctl..cui
Change-Id: I2fdeb7eb3ead3512ad6d3fe793305038ab3aa7ae Reviewed-on: https://gerrit.libreoffice.org/79886 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/SvxConfigPageHelper.cxx3
-rw-r--r--cui/source/dialogs/hldoctp.cxx3
-rw-r--r--cui/source/tabpages/grfpage.cxx3
-rw-r--r--cui/source/tabpages/tpgradnt.cxx3
-rw-r--r--cui/source/tabpages/tphatch.cxx3
-rw-r--r--cui/source/tabpages/tppattern.cxx3
6 files changed, 6 insertions, 12 deletions
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<float>(aOrigSize.Width())/TWIP_TO_INCH)+0.5));
sal_Int32 ay = sal_Int32(floor(static_cast<float>(aOrigPixelSize.Height()) /
(static_cast<float>(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() );