summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-25 20:48:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-25 20:56:34 +0000
commitc4b217c03e4759cfa1341e4835e3faf32a9ca730 (patch)
tree0920e3ebf3bfef46856f8ddab9da582a711168ed /vcl/source/control
parent5e6b8aebf1a6c7ef88f8c6ee86a8984d18869ccc (diff)
coverity#440998 Logically dead code
Change-Id: Ie7647ef6fb605f14febfb83804b23d8fd62bc717
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/button.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index b5d2e56b1c12..9634a310bc7b 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1533,7 +1533,6 @@ void PushButton::DataChanged( const DataChangedEvent& rDCEvt )
bool PushButton::PreNotify( NotifyEvent& rNEvt )
{
- bool nDone = false;
const MouseEvent* pMouseEvt = NULL;
if( (rNEvt.GetType() == EVENT_MOUSEMOVE) && (pMouseEvt = rNEvt.GetMouseEvent()) != NULL )
@@ -1594,7 +1593,7 @@ bool PushButton::PreNotify( NotifyEvent& rNEvt )
}
}
- return nDone || Button::PreNotify(rNEvt);
+ return Button::PreNotify(rNEvt);
}
// -----------------------------------------------------------------------
@@ -2782,7 +2781,6 @@ void RadioButton::DataChanged( const DataChangedEvent& rDCEvt )
bool RadioButton::PreNotify( NotifyEvent& rNEvt )
{
- bool nDone = false;
const MouseEvent* pMouseEvt = NULL;
if( (rNEvt.GetType() == EVENT_MOUSEMOVE) && (pMouseEvt = rNEvt.GetMouseEvent()) != NULL )
@@ -2804,7 +2802,7 @@ bool RadioButton::PreNotify( NotifyEvent& rNEvt )
}
}
- return nDone || Button::PreNotify(rNEvt);
+ return Button::PreNotify(rNEvt);
}
// -----------------------------------------------------------------------