Use explicit this capture in COLLECTOR m_inspector lambda

This commit is contained in:
Marek Roszko 2024-04-12 20:03:07 -04:00
parent 9e3865ed01
commit 41fc1411eb
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public:
m_scanTypes( {} ), m_scanTypes( {} ),
// Inspect() is virtual so calling it from a class common inspector preserves // Inspect() is virtual so calling it from a class common inspector preserves
// polymorphism. // polymorphism.
m_inspector( [=]( EDA_ITEM* aItem, void* aTestData ) m_inspector( [this]( EDA_ITEM* aItem, void* aTestData )
{ {
return this->Inspect( aItem, aTestData ); return this->Inspect( aItem, aTestData );
} ) } )