diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-09-20 11:19:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-09-20 11:19:18 +0200 |
commit | cf62e6c1d87bdee8021351cefaedec0796e15c90 (patch) | |
tree | f85fdd3b5a2a9c66b1dc0324258011a31103fe65 /basctl | |
parent | f6766271b361fe18a299df23cb0b6d67467f70d5 (diff) |
Related cid#1371289: Improve code to not depend on missing move assignment
Change-Id: I332010574a2ddd13590452f08da32f21f8ef882b
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/basides2.cxx | 9 |
1 files 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 ) |