7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 13:41:43 +00:00

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

View File

@ -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() {}