From 683312377a294e9dbe0a96b7b1b489e3d5b4f1f7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 24 May 2012 11:38:12 +0200 Subject: Removed unused SfxMedium::bDirect See the TODO comment in sfx2/inc/sfx2/docfile.hxx about a temporary SfxMedium ctor overload to find not yet adapted uses of another overload, to be removed again in due time. Change-Id: Ie22c33c32f8870ce6ebf6d500abc7a4e33d97183 --- sfx2/source/doc/objmisc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2/source/doc/objmisc.cxx') diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 900858c1f923..037f4bcc2504 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -442,7 +442,7 @@ void SfxObjectShell::SetReadOnly() if ( !pMedium->HasStorage_Impl() && IsLoadingFinished() ) pMedium->CloseInStream(); - pMedium->SetOpenMode( SFX_STREAM_READONLY, pMedium->IsDirect(), sal_True ); + pMedium->SetOpenMode( SFX_STREAM_READONLY, sal_True ); pMedium->GetItemSet()->Put( SfxBoolItem( SID_DOC_READONLY, sal_True ) ); if ( !bWasROUI ) @@ -1402,7 +1402,7 @@ void SfxObjectShell::TemplateDisconnectionAfterLoad() // templates are never readonly pTmpMedium->GetItemSet()->ClearItem( SID_DOC_READONLY ); - pTmpMedium->SetOpenMode( SFX_STREAM_READWRITE, sal_True, sal_True ); + pTmpMedium->SetOpenMode( SFX_STREAM_READWRITE, sal_True ); // notifications about possible changes in readonly state and document info Broadcast( SfxSimpleHint(SFX_HINT_MODECHANGED) ); -- cgit