Fix MSVC warning C4355: 'this': used in base member initializer list.

This commit is contained in:
Alex Shvartzkop 2024-06-01 05:30:23 +03:00
parent cf7ad330e9
commit 6d6f6f384e
1 changed files with 7 additions and 7 deletions

View File

@ -50,14 +50,14 @@ public:
COLLECTOR() : COLLECTOR() :
m_Threshold( 0 ), m_Threshold( 0 ),
m_MenuCancelled( false ), m_MenuCancelled( false ),
m_scanTypes( {} ), m_scanTypes( {} )
// Inspect() is virtual so calling it from a class common inspector preserves
// polymorphism.
m_inspector( [this]( EDA_ITEM* aItem, void* aTestData )
{
return this->Inspect( aItem, aTestData );
} )
{ {
// Inspect() is virtual so calling it from a class common inspector preserves
// polymorphism.
m_inspector = [this]( EDA_ITEM* aItem, void* aTestData )
{
return this->Inspect( aItem, aTestData );
};
} }
virtual ~COLLECTOR() {} virtual ~COLLECTOR() {}