Avoid "suggest parentheses around assignment used as truth value"
This commit is contained in:
parent
9e1fd16329
commit
279641df73
|
@ -921,12 +921,10 @@ int KICAD_MANAGER_CONTROL::ShowPluginManager( const TOOL_EVENT& aEvent )
|
||||||
KIWAY& kiway = m_frame->Kiway();
|
KIWAY& kiway = m_frame->Kiway();
|
||||||
|
|
||||||
// Reset state containing global lib tables
|
// Reset state containing global lib tables
|
||||||
KIFACE* kiface;
|
if( KIFACE* kiface = kiway.KiFACE( KIWAY::FACE_SCH, false ) )
|
||||||
|
|
||||||
if( kiface = kiway.KiFACE( KIWAY::FACE_SCH, false ) )
|
|
||||||
kiface->Reset();
|
kiface->Reset();
|
||||||
|
|
||||||
if( kiface = kiway.KiFACE( KIWAY::FACE_PCB, false ) )
|
if( KIFACE* kiface = kiway.KiFACE( KIWAY::FACE_PCB, false ) )
|
||||||
kiface->Reset();
|
kiface->Reset();
|
||||||
|
|
||||||
// Reload lib tables
|
// Reload lib tables
|
||||||
|
|
Loading…
Reference in New Issue