From 41fc1411eb941bb34044fcf09ae5060a1c922d14 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Fri, 12 Apr 2024 20:03:07 -0400 Subject: [PATCH] Use explicit this capture in COLLECTOR m_inspector lambda --- include/collector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/collector.h b/include/collector.h index 690f96ae6c..386af5a59c 100644 --- a/include/collector.h +++ b/include/collector.h @@ -53,7 +53,7 @@ public: m_scanTypes( {} ), // Inspect() is virtual so calling it from a class common inspector preserves // polymorphism. - m_inspector( [=]( EDA_ITEM* aItem, void* aTestData ) + m_inspector( [this]( EDA_ITEM* aItem, void* aTestData ) { return this->Inspect( aItem, aTestData ); } )