Remove redundant wxCommandEvent::SetEventObject() call
No real changes, just don't call SetEventObject() already called from InitCommandEventWithItems() (via InitCommandEvent()).
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user