diff --git a/pcbnew/tools/pcb_editor_control.cpp b/pcbnew/tools/pcb_editor_control.cpp index b72d770865..5869825907 100644 --- a/pcbnew/tools/pcb_editor_control.cpp +++ b/pcbnew/tools/pcb_editor_control.cpp @@ -21,6 +21,7 @@ * or you may write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +#include #include "pcb_editor_control.h" #include "common_actions.h" @@ -776,7 +777,7 @@ static bool highlightNet( TOOL_MANAGER* aToolMgr, const VECTOR2D& aPosition ) int PCB_EDITOR_CONTROL::HighlightNet( const TOOL_EVENT& aEvent ) { - int netcode = aEvent.Parameter(); + int netcode = aEvent.Parameter(); if( netcode > 0 ) { diff --git a/pcbnew/tools/pcbnew_control.cpp b/pcbnew/tools/pcbnew_control.cpp index 2b7f90f186..823dc617a1 100644 --- a/pcbnew/tools/pcbnew_control.cpp +++ b/pcbnew/tools/pcbnew_control.cpp @@ -22,6 +22,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +#include + #include "pcbnew_control.h" #include "common_actions.h" #include "selection_tool.h" @@ -174,7 +176,7 @@ int PCBNEW_CONTROL::ZoomFitScreen( const TOOL_EVENT& aEvent ) int PCBNEW_CONTROL::ZoomPreset( const TOOL_EVENT& aEvent ) { - unsigned int idx = aEvent.Parameter(); + unsigned int idx = aEvent.Parameter(); std::vector& zoomList = m_frame->GetScreen()->m_ZoomList; KIGFX::VIEW* view = m_frame->GetGalCanvas()->GetView(); KIGFX::GAL* gal = m_frame->GetGalCanvas()->GetGAL(); @@ -332,7 +334,7 @@ int PCBNEW_CONTROL::HighContrastDec( const TOOL_EVENT& aEvent ) // Layer control int PCBNEW_CONTROL::LayerSwitch( const TOOL_EVENT& aEvent ) { - m_frame->SwitchLayer( NULL, (LAYER_ID) aEvent.Parameter() ); + m_frame->SwitchLayer( NULL, (LAYER_ID) aEvent.Parameter() ); return 0; } @@ -445,7 +447,7 @@ int PCBNEW_CONTROL::LayerAlphaDec( const TOOL_EVENT& aEvent ) // Cursor control int PCBNEW_CONTROL::CursorControl( const TOOL_EVENT& aEvent ) { - long type = aEvent.Parameter(); + long type = aEvent.Parameter(); bool fastMove = type & COMMON_ACTIONS::CURSOR_FAST_MOVE; type &= ~COMMON_ACTIONS::CURSOR_FAST_MOVE; @@ -552,7 +554,7 @@ int PCBNEW_CONTROL::CursorControl( const TOOL_EVENT& aEvent ) int PCBNEW_CONTROL::PanControl( const TOOL_EVENT& aEvent ) { - long type = aEvent.Parameter(); + long type = aEvent.Parameter(); KIGFX::VIEW* view = getView(); GRID_HELPER gridHelper( m_frame ); VECTOR2D center = view->GetCenter(); @@ -674,7 +676,7 @@ int PCBNEW_CONTROL::GridResetOrigin( const TOOL_EVENT& aEvent ) int PCBNEW_CONTROL::GridPreset( const TOOL_EVENT& aEvent ) { - long idx = aEvent.Parameter(); + long idx = aEvent.Parameter(); m_frame->SetPresetGrid( idx ); updateGrid();