From aee49860ee413547e2779dbd622700343ce255b3 Mon Sep 17 00:00:00 2001 From: Arnold Dumas Date: Fri, 1 Jul 2016 20:52:26 +0200 Subject: tdf#100726: Improve readability of OUString concatenations Change-Id: I7018f3c339ffcab7d46d97f1d3784da1be644f0a Reviewed-on: https://gerrit.libreoffice.org/26870 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- basctl/source/basicide/basobj2.cxx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'basctl/source/basicide/basobj2.cxx') 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() ) -- cgit