From 279641df73563abf8fe1b73dbe25f4d2932504d0 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Fri, 10 Mar 2023 23:07:38 +0100 Subject: [PATCH] Avoid "suggest parentheses around assignment used as truth value" --- kicad/tools/kicad_manager_control.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kicad/tools/kicad_manager_control.cpp b/kicad/tools/kicad_manager_control.cpp index f70f93e0e7..ac35350ed6 100644 --- a/kicad/tools/kicad_manager_control.cpp +++ b/kicad/tools/kicad_manager_control.cpp @@ -921,12 +921,10 @@ int KICAD_MANAGER_CONTROL::ShowPluginManager( const TOOL_EVENT& aEvent ) KIWAY& kiway = m_frame->Kiway(); // Reset state containing global lib tables - KIFACE* kiface; - - if( kiface = kiway.KiFACE( KIWAY::FACE_SCH, false ) ) + if( KIFACE* kiface = kiway.KiFACE( KIWAY::FACE_SCH, false ) ) kiface->Reset(); - if( kiface = kiway.KiFACE( KIWAY::FACE_PCB, false ) ) + if( KIFACE* kiface = kiway.KiFACE( KIWAY::FACE_PCB, false ) ) kiface->Reset(); // Reload lib tables