Fix MSVC warning C4355: 'this': used in base member initializer list.
This commit is contained in:
parent
cf7ad330e9
commit
6d6f6f384e
|
@ -50,14 +50,14 @@ public:
|
|||
COLLECTOR() :
|
||||
m_Threshold( 0 ),
|
||||
m_MenuCancelled( false ),
|
||||
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 );
|
||||
} )
|
||||
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 );
|
||||
};
|
||||
}
|
||||
|
||||
virtual ~COLLECTOR() {}
|
||||
|
|
Loading…
Reference in New Issue