diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-16 14:40:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-16 16:41:58 +0100 |
commit | bcbf14f6077b0ccf1179dcba3e382bda4f9bdcad (patch) | |
tree | d05b4a84e8c48812432e8c4a71c7f1e9da128ec7 | |
parent | 98a39af312d493c26eabc94f95df0c27b3c7f66c (diff) |
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
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 9 |
1 files changed, 1 insertions, 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<document::XDocumentProperties>& i_xDocProps, const uno::Sequence<document::CmisProperty>& 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<TriState>(m_bUseUserData) ); m_pUseUserDataCB->SaveValue(); m_pUseUserDataCB->Enable( bEnableUseUserData ); bHandleDelete = false; |