Static cast some more enum usage
This commit is contained in:
parent
7d68e19afa
commit
94847e89c3
|
@ -94,7 +94,7 @@ TOOL_ACTION CVPCB_ACTIONS::changeFocusRight( TOOL_ACTION_ARGS()
|
||||||
TOOL_ACTION CVPCB_ACTIONS::changeFocusLeft( TOOL_ACTION_ARGS()
|
TOOL_ACTION CVPCB_ACTIONS::changeFocusLeft( TOOL_ACTION_ARGS()
|
||||||
.Name( "cvpcb.Control.changeFocusLeft" )
|
.Name( "cvpcb.Control.changeFocusLeft" )
|
||||||
.Scope( AS_GLOBAL )
|
.Scope( AS_GLOBAL )
|
||||||
.DefaultHotkey( MD_SHIFT + WXK_TAB )
|
.DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_TAB ) )
|
||||||
.Flags( AF_NONE )
|
.Flags( AF_NONE )
|
||||||
.Parameter( CVPCB_MAINFRAME::CHANGE_FOCUS_LEFT ) );
|
.Parameter( CVPCB_MAINFRAME::CHANGE_FOCUS_LEFT ) );
|
||||||
|
|
||||||
|
|
|
@ -659,7 +659,7 @@ TOOL_ACTION PCB_ACTIONS::intersectPolygons( TOOL_ACTION_ARGS()
|
||||||
TOOL_ACTION PCB_ACTIONS::deleteFull( TOOL_ACTION_ARGS()
|
TOOL_ACTION PCB_ACTIONS::deleteFull( TOOL_ACTION_ARGS()
|
||||||
.Name( "pcbnew.InteractiveEdit.deleteFull" )
|
.Name( "pcbnew.InteractiveEdit.deleteFull" )
|
||||||
.Scope( AS_GLOBAL )
|
.Scope( AS_GLOBAL )
|
||||||
.DefaultHotkey( MD_SHIFT + WXK_DELETE )
|
.DefaultHotkey( MD_SHIFT + static_cast<int>( WXK_DELETE ) )
|
||||||
.LegacyHotkeyName( "Delete Full Track" )
|
.LegacyHotkeyName( "Delete Full Track" )
|
||||||
.FriendlyName( _( "Delete Full Track" ) )
|
.FriendlyName( _( "Delete Full Track" ) )
|
||||||
.Tooltip( _( "Deletes selected item(s) and copper connections" ) )
|
.Tooltip( _( "Deletes selected item(s) and copper connections" ) )
|
||||||
|
|
|
@ -299,7 +299,7 @@ void ZONE::ViewGetLayers( int aLayers[], int& aCount ) const
|
||||||
for( PCB_LAYER_ID layer : m_layerSet.Seq() )
|
for( PCB_LAYER_ID layer : m_layerSet.Seq() )
|
||||||
{
|
{
|
||||||
aLayers[ aCount++ ] = layer; // For outline (always full opacity)
|
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() )
|
if( IsConflicting() )
|
||||||
|
|
Loading…
Reference in New Issue