Avoid "suggest parentheses around assignment used as truth value"

This commit is contained in:
Simon Richter 2023-03-10 23:07:38 +01:00
parent 9e1fd16329
commit 279641df73
1 changed files with 2 additions and 4 deletions

View File

@ -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