From cf62e6c1d87bdee8021351cefaedec0796e15c90 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 20 Sep 2016 11:19:18 +0200 Subject: [PATCH] Related cid#1371289: Improve code to not depend on missing move assignment Change-Id: I332010574a2ddd13590452f08da32f21f8ef882b --- basctl/source/basicide/basides2.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/basctl/source/basicide/basides2.cxx b/basctl/source/basicide/basides2.cxx index 98c0dfb41a92..40bd5c4bc327 100644 --- a/basctl/source/basicide/basides2.cxx +++ b/basctl/source/basicide/basides2.cxx @@ -96,21 +96,20 @@ sal_uInt16 Shell::SetPrinter( SfxPrinter *pNewPrinter, SfxPrinterChangeFlags ) void Shell::SetMDITitle() { - OUStringBuffer aTitleBuf; + OUString aTitle; if ( !m_aCurLibName.isEmpty() ) { LibraryLocation eLocation = m_aCurDocument.getLibraryLocation( m_aCurLibName ); - aTitleBuf = m_aCurDocument.getTitle(eLocation) + "." + m_aCurLibName ; + aTitle = m_aCurDocument.getTitle(eLocation) + "." + m_aCurLibName ; } else - aTitleBuf = IDE_RESSTR(RID_STR_ALL) ; + aTitle = IDE_RESSTR(RID_STR_ALL) ; DocumentSignature aCurSignature( m_aCurDocument ); if ( aCurSignature.getScriptingSignatureState() == SignatureState::OK ) { - aTitleBuf = aTitleBuf + " " + IDE_RESSTR(RID_STR_SIGNED) + " "; + aTitle += " " + IDE_RESSTR(RID_STR_SIGNED) + " "; } - OUString aTitle(aTitleBuf.makeStringAndClear()); SfxViewFrame* pViewFrame = GetViewFrame(); if ( pViewFrame )