summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-01 14:13:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-01 14:13:37 +0000
commitaa9d55fe144f67c22cc55ab708eb7377402b484c (patch)
tree06a4723a4ef51802a317e691e68b384014517481 /dbaccess/source
parent982f199a98a7d82e0109077882a645f1a442049e (diff)
WaE: -Werror=switch
Change-Id: I347bcc82795da95f14ad9be90cc6c9020fd697ca
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx20
1 files changed, 9 insertions, 11 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 946f03cbe320..b7ae1336e225 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -2770,21 +2770,19 @@ void OQueryDesignView::fillValidFields(const OUString& sAliasName, ComboBox* pFi
bool OQueryDesignView::PreNotify(NotifyEvent& rNEvt)
{
- switch (rNEvt.GetType())
+ if (rNEvt.GetType() == MouseNotifyEvent::GETFOCUS)
{
- case MouseNotifyEvent::GETFOCUS:
#if OSL_DEBUG_LEVEL > 0
- {
- vcl::Window* pFocus = Application::GetFocusWindow();
- (void)pFocus;
- }
+ {
+ vcl::Window* pFocus = Application::GetFocusWindow();
+ (void)pFocus;
+ }
#endif
- if ( m_pSelectionBox && m_pSelectionBox->HasChildPathFocus() )
- m_eChildFocus = SELECTION;
- else
- m_eChildFocus = TABLEVIEW;
- break;
+ if ( m_pSelectionBox && m_pSelectionBox->HasChildPathFocus() )
+ m_eChildFocus = SELECTION;
+ else
+ m_eChildFocus = TABLEVIEW;
}
return OQueryView::PreNotify(rNEvt);