Lambda capture this for a callafter

This commit is contained in:
Marek Roszko 2024-04-12 19:52:42 -04:00
parent 6c17e275fb
commit 5087c076c1
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ private:
void onDismiss( wxHyperlinkEvent& aEvent ) void onDismiss( wxHyperlinkEvent& aEvent )
{ {
CallAfter( CallAfter(
[=]() [this]()
{ {
// This will cause this panel to get deleted // This will cause this panel to get deleted
m_manager->Remove( m_notification->key ); m_manager->Remove( m_notification->key );