diff options
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/bastype3.cxx | 8 | ||||
-rw-r--r-- | basctl/source/basicide/bastypes.cxx | 11 |
2 files changed, 5 insertions, 14 deletions
diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx index 194d52d175e3..db15a6a6787e 100644 --- a/basctl/source/basicide/bastype3.cxx +++ b/basctl/source/basicide/bastype3.cxx @@ -455,13 +455,7 @@ SvTreeListEntry* TreeListBox::FindRootEntry( const ScriptDocument& rDocument, Li OUString CreateMgrAndLibStr( const OUString& rMgrName, const OUString& rLibName ) { - OUStringBuffer aName; - aName.append('['); - aName.append(rMgrName); - aName.append(']'); - aName.append('.'); - aName.append(rLibName); - return aName.makeStringAndClear(); + return "[" + rMgrName + "]." + rLibName; } diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx index 461044c7d407..340ea4052372 100644 --- a/basctl/source/basicide/bastypes.cxx +++ b/basctl/source/basicide/bastypes.cxx @@ -183,17 +183,14 @@ OUString BaseWindow::GetTitle() OUString BaseWindow::CreateQualifiedName() { - OUStringBuffer aName; + OUString aName; if ( !m_aLibName.isEmpty() ) { LibraryLocation eLocation = m_aDocument.getLibraryLocation( m_aLibName ); - aName.append(m_aDocument.getTitle(eLocation)); - aName.append('.'); - aName.append(m_aLibName); - aName.append('.'); - aName.append(GetTitle()); + aName = m_aDocument.getTitle(eLocation) + "." + m_aLibName + "." + + GetTitle(); } - return aName.makeStringAndClear(); + return aName; } void BaseWindow::SetReadOnly (bool) |