diff options
author | Arnold Dumas <arnold@dumas.at> | 2016-07-01 20:52:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-04 10:24:30 +0000 |
commit | aee49860ee413547e2779dbd622700343ce255b3 (patch) | |
tree | abe5147deb6c908a7dfd41501014382ee4e09c83 /basctl | |
parent | 8d2f282abeb0b701f7c49000d5433462bbda8602 (diff) |
tdf#100726: Improve readability of OUString concatenations
Change-Id: I7018f3c339ffcab7d46d97f1d3784da1be644f0a
Reviewed-on: https://gerrit.libreoffice.org/26870
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/basides1.cxx | 4 | ||||
-rw-r--r-- | basctl/source/basicide/basobj2.cxx | 14 | ||||
-rw-r--r-- | basctl/source/basicide/basobj3.cxx | 5 | ||||
-rw-r--r-- | basctl/source/basicide/macrodlg.cxx | 6 |
4 files changed, 5 insertions, 24 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index 8bd711b3e634..50ea0d686de5 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -916,9 +916,7 @@ void Shell::GetState(SfxItemSet &rSet) else aLocale = pCurMgr->getStringResourceManager()->getDefaultLocale(); - aLangStr += aLocale.Language; - aLangStr += aLocale.Country; - aLangStr += aLocale.Variant; + aLangStr += aLocale.Language + aLocale.Country + aLocale.Variant; } aItemStr = aLangStr; } diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx index 29d9824b1a5f..d3447105263e 100644 --- a/basctl/source/basicide/basobj2.cxx +++ b/basctl/source/basicide/basobj2.cxx @@ -289,12 +289,7 @@ OUString ChooseMacro( const uno::Reference< frame::XModel >& rxLimitToDocument, } // name - OUString aName; - aName += pBasic->GetName(); - aName += "."; - aName += pModule->GetName(); - aName += "."; - aName += pMethod->GetName(); + OUString aName = pBasic->GetName() + "." + pModule->GetName() + "." + pMethod->GetName(); // location OUString aLocation; @@ -342,12 +337,7 @@ OUString ChooseMacro( const uno::Reference< frame::XModel >& rxLimitToDocument, // script URL if ( !bError ) { - aScriptURL = "vnd.sun.star.script:" ; - aScriptURL += aName; - aScriptURL += "?language=" ; - aScriptURL += "Basic"; - aScriptURL += "&location=" ; - aScriptURL += aLocation; + aScriptURL = "vnd.sun.star.script:" + aName + "?language=Basic&location=" + aLocation; } if ( !rxLimitToDocument.is() ) diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx index 5aee287cdc9f..70b85e4d3307 100644 --- a/basctl/source/basicide/basobj3.cxx +++ b/basctl/source/basicide/basobj3.cxx @@ -96,10 +96,7 @@ SbMethod* CreateMacro( SbModule* pModule, const OUString& rMacroName ) aOUSource = aOUSource.copy( 0, nSourceLen-1 ); } - OUString aSubStr; - aSubStr = "Sub " ; - aSubStr += aMacroName; - aSubStr += "\n\nEnd Sub" ; + OUString aSubStr = "Sub " + aMacroName + "\n\nEnd Sub"; aOUSource += aSubStr; diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx index a8ad23249269..3c15cbc1434a 100644 --- a/basctl/source/basicide/macrodlg.cxx +++ b/basctl/source/basicide/macrodlg.cxx @@ -497,11 +497,7 @@ IMPL_LINK_TYPED( MacroChooser, BasicSelectHdl, SvTreeListBox *, pBox, void ) m_pMacroBox->Clear(); if ( pModule ) { - OUString aStr = m_aMacrosInTxtBaseStr; - aStr += " " ; - aStr += pModule->GetName(); - - m_pMacrosInTxt->SetText( aStr ); + m_pMacrosInTxt->SetText( m_aMacrosInTxtBaseStr + " " + pModule->GetName() ); // The macros should be called in the same order that they // are written down in the module. |