[Libreoffice-commits] core.git: sfx2/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Sun Apr 28 11:15:56 UTC 2019
sfx2/source/dialog/dinfdlg.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit da92911da48af7a986fda0d6c9a00a6a567393ed
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sun Apr 28 12:00:06 2019 +0200
Commit: Mike Kaganski <mike.kaganski at 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.kaganski at 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;
More information about the Libreoffice-commits
mailing list