From 618e824b0f506dec7ea13a57bc0fd6041cc311de Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 9 Feb 2021 12:25:17 +0000 Subject: [PATCH] Cleanup includes and formatting. --- eeschema/fields_grid_table.cpp | 1 - pcbnew/pcb_base_frame.cpp | 6 ++++-- pcbnew/pcb_painter.cpp | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/eeschema/fields_grid_table.cpp b/eeschema/fields_grid_table.cpp index ce33b2c6a8..58212e6183 100644 --- a/eeschema/fields_grid_table.cpp +++ b/eeschema/fields_grid_table.cpp @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include diff --git a/pcbnew/pcb_base_frame.cpp b/pcbnew/pcb_base_frame.cpp index f65d557059..b7c6621c4f 100644 --- a/pcbnew/pcb_base_frame.cpp +++ b/pcbnew/pcb_base_frame.cpp @@ -774,8 +774,10 @@ void PCB_BASE_FRAME::SetDisplayOptions( const PCB_DISPLAY_OPTIONS& aOptions ) []( KIGFX::VIEW_ITEM* aItem ) -> bool { if( VIA* via = dynamic_cast( aItem ) ) - return ( via->GetViaType() == VIATYPE::BLIND_BURIED || - via->GetViaType() == VIATYPE::MICROVIA ); + { + return via->GetViaType() == VIATYPE::BLIND_BURIED + || via->GetViaType() == VIATYPE::MICROVIA; + } return false; } ); diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index 7630f8e48e..4c81c84987 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -177,7 +177,8 @@ void PCB_RENDER_SETTINGS::LoadDisplayOptions( const PCB_DISPLAY_OPTIONS& aOption // Clearance settings switch( aOptions.m_ShowTrackClearanceMode ) { - case PCB_DISPLAY_OPTIONS::DO_NOT_SHOW_CLEARANCE: m_clearanceDisplayFlags = CL_NONE; + case PCB_DISPLAY_OPTIONS::DO_NOT_SHOW_CLEARANCE: + m_clearanceDisplayFlags = CL_NONE; break; case PCB_DISPLAY_OPTIONS::SHOW_CLEARANCE_NEW_TRACKS: