summaryrefslogtreecommitdiff
path: root/basic
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 /basic
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 'basic')
-rw-r--r--basic/source/classes/sbxmod.cxx2
-rw-r--r--basic/source/runtime/iosys.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index 72811562ac92..0e93da321ccd 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -2565,7 +2565,7 @@ void SbUserFormModule::InitObject()
}
catch(const Exception& ) {}
- sDialogUrl = sDialogUrl + sProjectName + "." + GetName() + "?location=document";
+ sDialogUrl += sProjectName + "." + GetName() + "?location=document";
uno::Reference< awt::XDialogProvider > xProvider = awt::DialogProvider::createWithModel( xContext, m_xModel );
m_xDialog = xProvider->createDialog( sDialogUrl );
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx
index cf433052014c..6797b41f7758 100644
--- a/basic/source/runtime/iosys.cxx
+++ b/basic/source/runtime/iosys.cxx
@@ -535,7 +535,7 @@ ErrCode const & SbiStream::Read( char& ch )
if (aLine.isEmpty())
{
Read( aLine );
- aLine = aLine + OString('\n');
+ aLine += OString('\n');
}
ch = aLine[0];
aLine = aLine.copy(1);
@@ -582,7 +582,7 @@ ErrCode SbiStream::Write( const OString& rBuf )
}
if( IsText() )
{
- aLine = aLine + rBuf;
+ aLine += rBuf;
// Get it out, if the end is an LF, but strip CRLF before,
// because the SvStream adds a CRLF!
sal_Int32 nLineLen = aLine.getLength();
@@ -729,7 +729,7 @@ char SbiIoSystem::Read()
if( aIn.isEmpty() )
{
ReadCon( aIn );
- aIn = aIn + OString('\n');
+ aIn += OString('\n');
}
ch = aIn[0];
aIn = aIn.copy(1);