summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-06-13 10:09:21 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-02-06 09:12:12 -0500
commit294c613da65793bc90e24c7d1339091669f9be07 (patch)
tree79d72720bedd6f8b4e4ec0eaa06e57919450a4db /sfx2/source
parentaadf1b51bb8f489b8aa3fb9e6cc5290ee0164bd2 (diff)
cppcheck:redundantAssignment
(cherry picked from commit 4ea281a3ccb5bd21e1808d8cb127a91a1bb72691) Change-Id: I1167d0ce6b6f6e48309d0551c1d2a283d79546a7
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/versdlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx
index 47ec3a6c6f0b..46f18b97e16e 100644
--- a/sfx2/source/dialog/versdlg.cxx
+++ b/sfx2/source/dialog/versdlg.cxx
@@ -387,8 +387,8 @@ IMPL_LINK_NOARG(SfxVersionDialog, SelectHdl_Impl)
m_pViewButton->Enable(bEnable);
const SfxPoolItem *pDummy=NULL;
- SfxItemState eState = pViewFrame->GetDispatcher()->QueryState( SID_DOCUMENT_MERGE, pDummy );
- eState = pViewFrame->GetDispatcher()->QueryState( SID_DOCUMENT_COMPARE, pDummy );
+ pViewFrame->GetDispatcher()->QueryState( SID_DOCUMENT_MERGE, pDummy );
+ SfxItemState eState = pViewFrame->GetDispatcher()->QueryState( SID_DOCUMENT_COMPARE, pDummy );
m_pCompareButton->Enable(bEnable && eState >= SfxItemState::DEFAULT);
return 0L;