Remove redundant wxCommandEvent::SetEventObject() call

No real changes, just don't call SetEventObject() already called from
InitCommandEventWithItems() (via InitCommandEvent()).
This commit is contained in:
Vadim Zeitlin
2019-07-21 21:32:16 +02:00
parent 211a42ef12
commit 6caba72637

View File

@@ -299,7 +299,6 @@ void wxControlWithItemsBase::SendSelectionChangedEvent(wxEventType eventType)
wxCommandEvent event(eventType, m_windowId);
event.SetInt(n);
event.SetEventObject(this);
event.SetString(GetStringSelection());
InitCommandEventWithItems(event, n);