summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basobj2.cxx
diff options
context:
space:
mode:
authorArnold Dumas <arnold@dumas.at>2016-07-01 20:52:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-04 10:24:30 +0000
commitaee49860ee413547e2779dbd622700343ce255b3 (patch)
treeabe5147deb6c908a7dfd41501014382ee4e09c83 /basctl/source/basicide/basobj2.cxx
parent8d2f282abeb0b701f7c49000d5433462bbda8602 (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/source/basicide/basobj2.cxx')
-rw-r--r--basctl/source/basicide/basobj2.cxx14
1 files changed, 2 insertions, 12 deletions
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() )