diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-09 11:20:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-12 09:13:33 +0200 |
commit | 0f8873612829f7946ea6c3114b050320520eb75a (patch) | |
tree | 564d2582a85c6796f4552c5d2bef4e091e42a4b8 /chart2/source/controller/main/ChartWindow.cxx | |
parent | 3e6ff89b5ca9c9b164deae82ab24a7ba1552e89e (diff) |
loplugin:mergeclasses
Change-Id: Icd01de71fe87e0bf17eba39f5b00fc9a46765509
Diffstat (limited to 'chart2/source/controller/main/ChartWindow.cxx')
-rw-r--r-- | chart2/source/controller/main/ChartWindow.cxx | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/chart2/source/controller/main/ChartWindow.cxx b/chart2/source/controller/main/ChartWindow.cxx index 91969a4d689d..1448b70bbba1 100644 --- a/chart2/source/controller/main/ChartWindow.cxx +++ b/chart2/source/controller/main/ChartWindow.cxx @@ -142,9 +142,7 @@ void ChartWindow::MouseMove( const MouseEvent& rMEvt ) void ChartWindow::Tracking( const TrackingEvent& rTEvt ) { - if( m_pWindowController ) - m_pWindowController->execute_Tracking( rTEvt ); - else + if( !m_pWindowController ) Window::Tracking( rTEvt ); } @@ -169,30 +167,22 @@ void ChartWindow::Resize() void ChartWindow::Activate() { - if( m_pWindowController ) - m_pWindowController->execute_Activate(); - else + if( !m_pWindowController ) Window::Activate(); } void ChartWindow::Deactivate() { - if( m_pWindowController ) - m_pWindowController->execute_Deactivate(); - else + if( !m_pWindowController ) Window::Deactivate(); } void ChartWindow::GetFocus() { - if( m_pWindowController ) - m_pWindowController->execute_GetFocus(); - else + if( !m_pWindowController ) Window::GetFocus(); } void ChartWindow::LoseFocus() { - if( m_pWindowController ) - m_pWindowController->execute_LoseFocus(); - else + if( !m_pWindowController ) Window::LoseFocus(); } |