diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-28 12:00:06 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-28 13:15:09 +0200 |
commit | da92911da48af7a986fda0d6c9a00a6a567393ed (patch) | |
tree | 0558b2c1795f8ea3c4c8737352bfec4ea13e9552 /sfx2 | |
parent | 66d5e422cd81f8eadf215929d626ea8859263f56 (diff) |
Remove redundant checks
The result of GetDialogExampleSet is checked below.
Change-Id: Ic3f7820d6d6923e0ced518157ce41f6bc0de65a7
Reviewed-on: https://gerrit.libreoffice.org/71457
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index a668917dd7bf..ec3f57656ab9 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -887,8 +887,7 @@ bool SfxDocumentPage::FillItemSet( SfxItemSet* rSet ) bool bRet = false; if ( !bHandleDelete && bEnableUseUserData && - m_xUseUserDataCB->get_state_changed_from_saved() && - GetDialogExampleSet() ) + m_xUseUserDataCB->get_state_changed_from_saved() ) { const SfxItemSet* pExpSet = GetDialogExampleSet(); const SfxPoolItem* pItem; @@ -924,8 +923,7 @@ bool SfxDocumentPage::FillItemSet( SfxItemSet* rSet ) } } - if ( m_xUseThumbnailSaveCB->get_state_changed_from_saved() && - GetDialogExampleSet() ) + if ( m_xUseThumbnailSaveCB->get_state_changed_from_saved() ) { const SfxItemSet* pExpSet = GetDialogExampleSet(); const SfxPoolItem* pItem; |