summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authoranuragkanungo <anuragkanungo@gmail.com>2013-04-21 23:58:21 +0530
committerFridrich Strba <fridrich@documentfoundation.org>2013-04-22 07:40:47 +0000
commit97f6625d9a49f62f09b0f9ddab8fa4935de45ae5 (patch)
tree5088f60ee7db4148b954020c3aa716218ac23cb9 /basctl
parentdd47994722eaead16099145e593fbf878072d52b (diff)
Replace chained O(U)StringBuffer::append() with operator+
modified: basctl/source/basicide/basides2.cxx Change-Id: I681188553058ac8712365bc2de39b0453fd19ed9 Reviewed-on: https://gerrit.libreoffice.org/3546 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basides2.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/basctl/source/basicide/basides2.cxx b/basctl/source/basicide/basides2.cxx
index e08fe951effc..8e1daa86b62b 100644
--- a/basctl/source/basicide/basides2.cxx
+++ b/basctl/source/basicide/basides2.cxx
@@ -111,19 +111,15 @@ void Shell::SetMDITitle()
if ( !m_aCurLibName.isEmpty() )
{
LibraryLocation eLocation = m_aCurDocument.getLibraryLocation( m_aCurLibName );
- aTitleBuf.append(m_aCurDocument.getTitle(eLocation));
- aTitleBuf.append('.');
- aTitleBuf.append(m_aCurLibName);
+ aTitleBuf = m_aCurDocument.getTitle(eLocation) + "." + m_aCurLibName ;
}
else
- aTitleBuf.append(IDE_RESSTR(RID_STR_ALL));
+ aTitleBuf = IDE_RESSTR(RID_STR_ALL) ;
DocumentSignature aCurSignature( m_aCurDocument );
if ( aCurSignature.getScriptingSignatureState() == SIGNATURESTATE_SIGNATURES_OK )
{
- aTitleBuf.append(' ');
- aTitleBuf.append(IDE_RESSTR(RID_STR_SIGNED));
- aTitleBuf.append(' ');
+ aTitleBuf = aTitleBuf + " " + IDE_RESSTR(RID_STR_SIGNED) + " ";
}
OUString aTitle(aTitleBuf.makeStringAndClear());