summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-10 16:23:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-11 07:18:11 +0200
commitcdbac696fb0cbb1d09645bc02799eed5504b192b (patch)
tree25ef63dbfb17fdafcd073cbc0c1d88bd5759e408 /sd/source
parentcfd06eb99b8f366bfe96e4a6d3112e4c6057098b (diff)
simplify "a = a +" to "a +="
mostly so that my stringadd loplugin can point out places to improve Change-Id: I9920ee1c99cdb6b811ba67ff9d8e32aa261884b5 Reviewed-on: https://gerrit.libreoffice.org/80618 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx2
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx2
-rw-r--r--sd/source/ui/dlg/custsdlg.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx
index c3004e7c1d61..d0fc351dee60 100644
--- a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx
+++ b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx
@@ -691,7 +691,7 @@ uno::Any SAL_CALL AccessibleDocumentViewBase::getExtendedAttributes()
if (!layerAltText.isEmpty())
{
sName = " ";
- sDisplay = sDisplay + sName + layerAltText;
+ sDisplay += sName + layerAltText;
}
}
}
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index aa56364c8889..512415465307 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -155,7 +155,7 @@ OUString getAnnotationDateTimeString( const Reference< XAnnotation >& xAnnotatio
::tools::Time aTime( aDateTime );
if(aTime.GetTime() != 0)
- sRet = sRet + " " + rLocalData.getTime( aTime,false );
+ sRet += " " + rLocalData.getTime( aTime,false );
}
return sRet;
}
diff --git a/sd/source/ui/dlg/custsdlg.cxx b/sd/source/ui/dlg/custsdlg.cxx
index b18a6e05e5d2..dfb07394b904 100644
--- a/sd/source/ui/dlg/custsdlg.cxx
+++ b/sd/source/ui/dlg/custsdlg.cxx
@@ -182,14 +182,14 @@ void SdCustomShowDlg::SelectHdl(void const *p)
sal_Int32 nNum = 1;
if( nStrPos < 0 )
{
- aStr = aStr + " (" + aStrCopy + OUString::number( nNum ) + ")";
+ aStr += " (" + aStrCopy + OUString::number( nNum ) + ")";
nStrPos = aStr.indexOf( aStrCopy );
}
nStrPos = nStrPos + aStrCopy.getLength();
// that we do not access into the nirvana (--> endless loop)
if( nStrPos >= aStr.getLength() )
{
- aStr = aStr + " " + OUString::number( nNum );
+ aStr += " " + OUString::number( nNum );
}
// check name...