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/source/basicide/basobj2.cxx | |
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/source/basicide/basobj2.cxx')
-rw-r--r-- | basctl/source/basicide/basobj2.cxx | 14 |
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() ) |