From d0749a3a5276149a2c61c364a9094f6edf9c84b6 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 9 Sep 2013 14:31:27 +0200 Subject: [PATCH] Small refactoring. --- common/view/wx_view_controls.cpp | 3 +-- include/tool/tool_dispatcher.h | 2 +- include/view/wx_view_controls.h | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index 5f3950ea15..838f5b82a0 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -197,8 +197,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent ) dir = m_view->ToWorld( dir, false ); m_view->SetCenter( m_view->GetCenter() + dir * m_autoPanSpeed ); - wxPaintEvent redrawEvent; - wxPostEvent( m_parentPanel, redrawEvent ); + m_parentPanel->Refresh(); } break; diff --git a/include/tool/tool_dispatcher.h b/include/tool/tool_dispatcher.h index 8072274dfe..d4057c68b0 100644 --- a/include/tool/tool_dispatcher.h +++ b/include/tool/tool_dispatcher.h @@ -36,7 +36,7 @@ class TOOL_MANAGER; class PCB_BASE_FRAME; namespace KiGfx { - class VIEW ; + class VIEW; }; /** diff --git a/include/view/wx_view_controls.h b/include/view/wx_view_controls.h index 1df1590745..7c905f2f9c 100644 --- a/include/view/wx_view_controls.h +++ b/include/view/wx_view_controls.h @@ -54,8 +54,8 @@ public: void onWheel( wxMouseEvent& aEvent ); void onMotion( wxMouseEvent& aEvent ); void onButton( wxMouseEvent& aEvent ); - void onEnter( wxMouseEvent& aEvent ); - void onTimer( wxTimerEvent& aEvent ); + void onEnter( wxMouseEvent& WXUNUSED( aEvent ) ); + void onTimer( wxTimerEvent& WXUNUSED( aEvent ) ); /** * Function SetGrabMouse()