summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorChristos Strubulis <strubulis@gmail.com>2012-12-18 06:59:28 -0800
committerLuboš Luňák <l.lunak@suse.cz>2012-12-18 17:26:54 +0100
commit5198c4a41f9cb793abd1276e75a640f7391ce0c3 (patch)
tree3c63619d276ef182410271406cfeb4236f93bf0b /basctl
parent84a99c009e76582e79cc8341e2931d5b8261bb68 (diff)
Replace chained O(U)StringBuffer::append() with operator+
Change-Id: I0fcd70cff092c7d90b57b9af9dcec99f23750f1c Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/bastype3.cxx8
-rw-r--r--basctl/source/basicide/bastypes.cxx11
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)