Kaydet (Commit) 97f6625d authored tarafından anuragkanungo's avatar anuragkanungo Kaydeden (comit) Fridrich Strba

Replace chained O(U)StringBuffer::append() with operator+

	modified:   basctl/source/basicide/basides2.cxx

Change-Id: I681188553058ac8712365bc2de39b0453fd19ed9
Reviewed-on: https://gerrit.libreoffice.org/3546Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst dd479947
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment