Related cid#1371289: Improve code to not depend on missing move assignment
Change-Id: I332010574a2ddd13590452f08da32f21f8ef882b
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user