Formatting change for dynamic cast tests
This commit is contained in:
parent
36f6b4a9b4
commit
8fc434be19
|
@ -766,9 +766,7 @@ void TOOL_MANAGER::DispatchContextMenu( const TOOL_EVENT& aEvent )
|
|||
m_menuOwner = toolId;
|
||||
m_menuActive = true;
|
||||
|
||||
auto frame = dynamic_cast<wxFrame*>( m_frame );
|
||||
|
||||
if( frame )
|
||||
if( auto frame = dynamic_cast<wxFrame*>( m_frame ) )
|
||||
frame->PopupMenu( menu.get() );
|
||||
|
||||
// Warp the cursor if a menu item was selected
|
||||
|
|
|
@ -116,9 +116,7 @@ const LSET PCBNEW_SELECTION::GetSelectionLayers()
|
|||
|
||||
for( auto item : m_items )
|
||||
{
|
||||
auto board_item = dynamic_cast<BOARD_ITEM*>( item );
|
||||
|
||||
if( board_item )
|
||||
if( auto board_item = dynamic_cast<BOARD_ITEM*>( item ) )
|
||||
retval |= board_item->GetLayerSet();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue