Static cast some more enum usage

This commit is contained in:
Marek Roszko 2024-04-13 15:15:39 -04:00
parent 7d68e19afa
commit 94847e89c3
3 changed files with 3 additions and 3 deletions

View File

@ -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<int>( WXK_TAB ) )
.Flags( AF_NONE )
.Parameter( CVPCB_MAINFRAME::CHANGE_FOCUS_LEFT ) );

View File

@ -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<int>( WXK_DELETE ) )
.LegacyHotkeyName( "Delete Full Track" )
.FriendlyName( _( "Delete Full Track" ) )
.Tooltip( _( "Deletes selected item(s) and copper connections" ) )

View File

@ -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<int>( LAYER_ZONE_START ); // For fill (obeys global zone opacity)
}
if( IsConflicting() )