dbaccess/source/ui/querydesign/QueryDesignView.cxx | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-)
New commits: commit aa9d55fe144f67c22cc55ab708eb7377402b484c Author: Caolán McNamara <caol...@redhat.com> Date: Mon Dec 1 14:13:07 2014 +0000 WaE: -Werror=switch Change-Id: I347bcc82795da95f14ad9be90cc6c9020fd697ca diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index 946f03c..b7ae133 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);
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits