summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authornadith <nadmalinda@gmail.com>2016-07-29 11:47:40 +0530
committerNoel Grandin <noelgrandin@gmail.com>2016-08-04 05:53:34 +0000
commitc85a3ac70d813eef9baa9a5592c0a2d724bb9038 (patch)
treedee914fb632f4d316bbe3978d34764b82ca73e4a /basctl
parent3c9d834af059bf3e9485ab9f0190733aa21dd9a6 (diff)
tdf#100726: Improve readability of OUString concatenation
all most all of the places in the basic basctl modules this bug fixed Change-Id: I1a4a03e207c1b520449c31a05265585120da07f6 Reviewed-on: https://gerrit.libreoffice.org/27662 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside3.cxx4
-rw-r--r--basctl/source/basicide/basobj3.cxx3
-rw-r--r--basctl/source/basicide/moduldlg.cxx3
3 files changed, 3 insertions, 7 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index 185dba446794..5929df1a941b 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -763,9 +763,7 @@ void DialogWindow::SaveDialog()
aURLObj.removeSegment();
OUString aURL( aURLObj.GetMainURL( INetURLObject::NO_DECODE ) );
bool bReadOnly = false;
- OUString aComment( "# " );
- aComment += aDialogName;
- aComment += " strings" ;
+ OUString aComment = "# " + aDialogName + " strings" ;
Reference< task::XInteractionHandler > xDummyHandler;
// Remove old properties files in case of overwriting Dialog files
diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx
index 360b72f492cb..ad9626e5b3fe 100644
--- a/basctl/source/basicide/basobj3.cxx
+++ b/basctl/source/basicide/basobj3.cxx
@@ -72,8 +72,7 @@ SbMethod* CreateMacro( SbModule* pModule, const OUString& rMacroName )
sal_Int32 nMacro = 1;
while ( !bValid )
{
- aMacroName = "Macro";
- aMacroName += OUString::number( nMacro );
+ aMacroName = "Macro" + OUString::number( nMacro );
// test whether existing...
bValid = pModule->FindMethod( aMacroName, SbxClassType::Method ) == nullptr;
nMacro++;
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx
index cf4e55776bd2..71bdc914410e 100644
--- a/basctl/source/basicide/moduldlg.cxx
+++ b/basctl/source/basicide/moduldlg.cxx
@@ -953,8 +953,7 @@ void LibDialog::dispose()
void LibDialog::SetStorageName( const OUString& rName )
{
- OUString aName( IDE_RESSTR(RID_STR_FILENAME) );
- aName += rName;
+ OUString aName = IDE_RESSTR(RID_STR_FILENAME) + rName;
m_pStorageFrame->set_label(aName);
}