From bcbf14f6077b0ccf1179dcba3e382bda4f9bdcad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 16 Apr 2014 14:40:24 +0100 Subject: [PATCH] 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 --- sfx2/source/dialog/dinfdlg.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 44750f8e1476..df43353e9051 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -217,8 +217,6 @@ SfxDocumentInfoItem::SfxDocumentInfoItem() { } - - SfxDocumentInfoItem::SfxDocumentInfoItem( const OUString& rFile, const uno::Reference& i_xDocProps, const uno::Sequence& i_cmisProps, @@ -1112,12 +1110,7 @@ void SfxDocumentPage::Reset( const SfxItemSet& rSet ) m_pInfoItem->getEditingCycles() ) ); } - TriState eState = (TriState)m_bUseUserData; - - if ( TRISTATE_INDET == eState ) - m_pUseUserDataCB->EnableTriState( true ); - - m_pUseUserDataCB->SetState( eState ); + m_pUseUserDataCB->SetState( static_cast(m_bUseUserData) ); m_pUseUserDataCB->SaveValue(); m_pUseUserDataCB->Enable( bEnableUseUserData ); bHandleDelete = false;