diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-08-17 21:46:26 +0200 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-08-18 13:49:05 +0000 |
commit | 4abb7e5c5874fd53fd4c7a758faa03fe8216a0ee (patch) | |
tree | de1b3c1ec2f109ded3c1e72cdf46226170eabef5 /basctl/source/basicide/bastype2.cxx | |
parent | 611fd43dd2570bbffe84a3b0506f0c36d7972a38 (diff) |
fdo#57950: Remove some chained appends in basctl
Change-Id: Ib1c14c6712848ebb28f49d50837f691531c1b5d6
Reviewed-on: https://gerrit.libreoffice.org/5479
Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
Diffstat (limited to 'basctl/source/basicide/bastype2.cxx')
-rw-r--r-- | basctl/source/basicide/bastype2.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx index 4d2e7e93e053..2da3fccd35bf 100644 --- a/basctl/source/basicide/bastype2.cxx +++ b/basctl/source/basicide/bastype2.cxx @@ -492,19 +492,16 @@ void TreeListBox::ImpCreateLibSubSubEntriesInVBAMode( SvTreeListEntry* pLibSubRo // display a nice friendly name in the ObjectModule tab, // combining the objectname and module name, e.g. Sheet1 ( Financials ) - OUStringBuffer aEntryNameBuf( aModName ); + OUString aEntryName = aModName; if( eType == OBJ_TYPE_DOCUMENT_OBJECTS ) { OUString sObjName; ModuleInfoHelper::getObjectName( xLib, aModName, sObjName ); if( !sObjName.isEmpty() ) { - aEntryNameBuf.append( " (" ); - aEntryNameBuf.append(sObjName); - aEntryNameBuf.append(')'); + aEntryName += " (" + sObjName + ")"; } } - OUString aEntryName(aEntryNameBuf.makeStringAndClear()); SvTreeListEntry* pModuleEntry = FindEntry( pLibSubRootEntry, aEntryName, OBJ_TYPE_MODULE ); if ( !pModuleEntry ) pModuleEntry = AddEntry( |