diff options
author | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2016-07-01 14:07:52 +0300 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-03 15:46:58 +0000 |
commit | d5784e91e9cd83336dc16392fd65cb11c5373c9c (patch) | |
tree | d4113a679a56f6352b3ec49ad0cbe636fe9c3038 /basctl/source | |
parent | bad68fd0b4a40062990c96a1a3f8d7a31bd84180 (diff) |
Improve readability of OUString concatanation in LibPage
, ScriptDocument
, PropBrw
, VBATest
, SbUnoClass
, SbModule
, and SbiSymPool
It is more readable and more efficient as a bonus.
See: https://goo.gl/jsVAwy:
Change-Id: I73926989345193b133e538d5aeca36f12723162c
Reviewed-on: https://gerrit.libreoffice.org/26853
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 28 | ||||
-rw-r--r-- | basctl/source/basicide/scriptdocument.cxx | 4 | ||||
-rw-r--r-- | basctl/source/dlged/propbrw.cxx | 4 |
3 files changed, 18 insertions, 18 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index a46595b4766a..d7e9e56da013 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -747,18 +747,18 @@ void LibPage::InsertLib() // filter OUString aTitle(IDEResId(RID_STR_BASIC).toString()); OUString aFilter; - aFilter = "*.sbl;*.xlc;*.xlb" ; // library files - aFilter += ";*.sdw;*.sxw;*.odt" ; // text - aFilter += ";*.vor;*.stw;*.ott" ; // text template - aFilter += ";*.sgl;*.sxg;*.odm" ; // master document - aFilter += ";*.oth" ; // html document template - aFilter += ";*.sdc;*.sxc;*.ods" ; // spreadsheet - aFilter += ";*.stc;*.ots" ; // spreadsheet template - aFilter += ";*.sda;*.sxd;*.odg" ; // drawing - aFilter += ";*.std;*.otg" ; // drawing template - aFilter += ";*.sdd;*.sxi;*.odp" ; // presentation - aFilter += ";*.sti;*.otp" ; // presentation template - aFilter += ";*.sxm;*.odf" ; // formula + aFilter = OUString("*.sbl;*.xlc;*.xlb") // library files + + ";*.sdw;*.sxw;*.odt" // text + + ";*.vor;*.stw;*.ott" // text template + + ";*.sgl;*.sxg;*.odm" // master document + + ";*.oth" // html document template + + ";*.sdc;*.sxc;*.ods" // spreadsheet + + ";*.stc;*.ots" // spreadsheet template + + ";*.sda;*.sxd;*.odg" // drawing + + ";*.std;*.otg" // drawing template + + ";*.sdd;*.sxi;*.odp" // presentation + + ";*.sti;*.otp" // presentation template + + ";*.sxm;*.odf" ; // formula xFP->appendFilter( aTitle, aFilter ); // set display directory and filter @@ -1271,8 +1271,8 @@ void LibPage::ExportAsPackage( const OUString& aLibName ) const OUString strFullPath = "FullPath" ; const OUString strBasicMediaType = "application/vnd.sun.star.basic-library" ; - OUString fullPath = aLibName; - fullPath += "/" ; + OUString fullPath = aLibName + + "/" ; auto attribs(::comphelper::InitPropertySequence({ { strFullPath, makeAny(fullPath) }, { strMediaType, makeAny(strBasicMediaType) } diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx index 11b7cf1bb8ea..b66f2646f7c1 100644 --- a/basctl/source/basicide/scriptdocument.cxx +++ b/basctl/source/basicide/scriptdocument.cxx @@ -1269,8 +1269,8 @@ namespace basctl sal_Int32 i = 1; while ( !bValid ) { - aObjectName = aBaseName; - aObjectName += OUString::number( i ); + aObjectName = aBaseName + + OUString::number( i ); if ( aUsedNamesCheck.find( aObjectName ) == aUsedNamesCheck.end() ) bValid = true; diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx index 0260d771f7ff..fea4b0591b1d 100644 --- a/basctl/source/dlged/propbrw.cxx +++ b/basctl/source/dlged/propbrw.cxx @@ -284,8 +284,8 @@ void PropBrw::implSetNewObjectSequence { xObjectInspector->inspect( _rObjectSeq ); - OUString aText = IDE_RESSTR(RID_STR_BRWTITLE_PROPERTIES); - aText += IDE_RESSTR(RID_STR_BRWTITLE_MULTISELECT); + OUString aText = IDE_RESSTR(RID_STR_BRWTITLE_PROPERTIES) + + IDE_RESSTR(RID_STR_BRWTITLE_MULTISELECT); SetText( aText ); } } |