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>
This commit is contained in:
anuragkanungo 2013-04-21 23:58:21 +05:30 committed by Fridrich Strba
parent dd47994722
commit 97f6625d9a

View File

@ -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());