UI: Zero initialize EventParams in typical usage.
Better to be safe.
This commit is contained in:
parent
31e831a564
commit
4fb8ac96ce
9 changed files with 29 additions and 26 deletions
|
@ -119,7 +119,7 @@ EventReturn RatingChoice::OnChoiceClick(EventParams &e) {
|
|||
}
|
||||
}
|
||||
|
||||
EventParams e2;
|
||||
EventParams e2{};
|
||||
e2.v = e.v;
|
||||
e2.a = *value_;
|
||||
// Dispatch immediately (we're already on the UI thread as we're in an event handler).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue