sfx2/source/dialog/dinfdlg.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit da92911da48af7a986fda0d6c9a00a6a567393ed Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Apr 28 12:00:06 2019 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sun Apr 28 13:15:09 2019 +0200 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.kagan...@collabora.com> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits