Kaydet (Commit) bcbf14f6 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1202773 Logically dead code

I can't find any evidence that it was possible to be
other than true/false here before sal_Bool got converted
to bool

Change-Id: Ieacc780b5f5abce0fe166337a50284bd5e0aef45
üst 98a39af3
...@@ -217,8 +217,6 @@ SfxDocumentInfoItem::SfxDocumentInfoItem() ...@@ -217,8 +217,6 @@ SfxDocumentInfoItem::SfxDocumentInfoItem()
{ {
} }
SfxDocumentInfoItem::SfxDocumentInfoItem( const OUString& rFile, SfxDocumentInfoItem::SfxDocumentInfoItem( const OUString& rFile,
const uno::Reference<document::XDocumentProperties>& i_xDocProps, const uno::Reference<document::XDocumentProperties>& i_xDocProps,
const uno::Sequence<document::CmisProperty>& i_cmisProps, const uno::Sequence<document::CmisProperty>& i_cmisProps,
...@@ -1112,12 +1110,7 @@ void SfxDocumentPage::Reset( const SfxItemSet& rSet ) ...@@ -1112,12 +1110,7 @@ void SfxDocumentPage::Reset( const SfxItemSet& rSet )
m_pInfoItem->getEditingCycles() ) ); m_pInfoItem->getEditingCycles() ) );
} }
TriState eState = (TriState)m_bUseUserData; m_pUseUserDataCB->SetState( static_cast<TriState>(m_bUseUserData) );
if ( TRISTATE_INDET == eState )
m_pUseUserDataCB->EnableTriState( true );
m_pUseUserDataCB->SetState( eState );
m_pUseUserDataCB->SaveValue(); m_pUseUserDataCB->SaveValue();
m_pUseUserDataCB->Enable( bEnableUseUserData ); m_pUseUserDataCB->Enable( bEnableUseUserData );
bHandleDelete = false; bHandleDelete = false;
......
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