From 94847e89c3d7364eddf3ccc4ee3ae7f01938dbfd Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 13 Apr 2024 15:15:39 -0400 Subject: [PATCH] Static cast some more enum usage --- cvpcb/tools/cvpcb_actions.cpp | 2 +- pcbnew/tools/pcb_actions.cpp | 2 +- pcbnew/zone.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cvpcb/tools/cvpcb_actions.cpp b/cvpcb/tools/cvpcb_actions.cpp index da05ce8db9..e7baaf4afa 100644 --- a/cvpcb/tools/cvpcb_actions.cpp +++ b/cvpcb/tools/cvpcb_actions.cpp @@ -94,7 +94,7 @@ TOOL_ACTION CVPCB_ACTIONS::changeFocusRight( TOOL_ACTION_ARGS() TOOL_ACTION CVPCB_ACTIONS::changeFocusLeft( TOOL_ACTION_ARGS() .Name( "cvpcb.Control.changeFocusLeft" ) .Scope( AS_GLOBAL ) - .DefaultHotkey( MD_SHIFT + WXK_TAB ) + .DefaultHotkey( MD_SHIFT + static_cast( WXK_TAB ) ) .Flags( AF_NONE ) .Parameter( CVPCB_MAINFRAME::CHANGE_FOCUS_LEFT ) ); diff --git a/pcbnew/tools/pcb_actions.cpp b/pcbnew/tools/pcb_actions.cpp index 2a79d313e7..2cc70b091e 100644 --- a/pcbnew/tools/pcb_actions.cpp +++ b/pcbnew/tools/pcb_actions.cpp @@ -659,7 +659,7 @@ TOOL_ACTION PCB_ACTIONS::intersectPolygons( TOOL_ACTION_ARGS() TOOL_ACTION PCB_ACTIONS::deleteFull( TOOL_ACTION_ARGS() .Name( "pcbnew.InteractiveEdit.deleteFull" ) .Scope( AS_GLOBAL ) - .DefaultHotkey( MD_SHIFT + WXK_DELETE ) + .DefaultHotkey( MD_SHIFT + static_cast( WXK_DELETE ) ) .LegacyHotkeyName( "Delete Full Track" ) .FriendlyName( _( "Delete Full Track" ) ) .Tooltip( _( "Deletes selected item(s) and copper connections" ) ) diff --git a/pcbnew/zone.cpp b/pcbnew/zone.cpp index 5a96d1b9a7..0590fb98a3 100644 --- a/pcbnew/zone.cpp +++ b/pcbnew/zone.cpp @@ -299,7 +299,7 @@ void ZONE::ViewGetLayers( int aLayers[], int& aCount ) const for( PCB_LAYER_ID layer : m_layerSet.Seq() ) { aLayers[ aCount++ ] = layer; // For outline (always full opacity) - aLayers[ aCount++ ] = layer + LAYER_ZONE_START; // For fill (obeys global zone opacity) + aLayers[ aCount++ ] = layer + static_cast( LAYER_ZONE_START ); // For fill (obeys global zone opacity) } if( IsConflicting() )