diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-01 11:50:03 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-01 11:50:03 +0100 |
commit | 1f13a4f40618b798fc84a058097b0ad26e77f111 (patch) | |
tree | ae1367c2eaecb2769ce582dd8c7d1ee292aa9c25 /dbaccess | |
parent | 4c03d837eb19e3a7d38e26ebac9740cb58f5d03c (diff) |
-Werror,-Wswitch
Change-Id: I807b63361af2e40c4adf66412615b91b5d610dab
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/querycontainerwindow.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/dbaccess/source/ui/querydesign/querycontainerwindow.cxx b/dbaccess/source/ui/querydesign/querycontainerwindow.cxx index 7afd1c9ec663..26e8323be0bd 100644 --- a/dbaccess/source/ui/querydesign/querycontainerwindow.cxx +++ b/dbaccess/source/ui/querydesign/querycontainerwindow.cxx @@ -158,16 +158,12 @@ namespace dbaui bool OQueryContainerWindow::PreNotify( NotifyEvent& rNEvt ) { bool bHandled = false; - switch (rNEvt.GetType()) + if (rNEvt.GetType() == MouseNotifyEvent::GETFOCUS && m_pViewSwitch) { - case MouseNotifyEvent::GETFOCUS: - if ( m_pViewSwitch ) - { - OJoinController& rController = m_pViewSwitch->getDesignView()->getController(); - rController.InvalidateFeature(SID_CUT); - rController.InvalidateFeature(SID_COPY); - rController.InvalidateFeature(SID_PASTE); - } + OJoinController& rController = m_pViewSwitch->getDesignView()->getController(); + rController.InvalidateFeature(SID_CUT); + rController.InvalidateFeature(SID_COPY); + rController.InvalidateFeature(SID_PASTE); } return bHandled || ODataView::PreNotify(rNEvt); } |