diff options
| author | 2023-05-10 21:41:04 +0000 | |
|---|---|---|
| committer | 2023-05-11 17:25:35 +0000 | |
| commit | 835f1e74426a320274d95bd9a06bc09b1c4f36f8 (patch) | |
| tree | 34e1b3d10c7790ffcdf0c3127991dc8c9b04d93c /libs/ultrahdr/jpegencoderhelper.cpp | |
| parent | 8b0d097a741b2c47dcd445e1af63a2e49ec37994 (diff) | |
GestureConverter: Do not use NotifyArgs as an optional return type
NotifyArgs is an std::variant, which is not an optional type.
Default-constructing a value of that type results in the creation of the
first type in the variant, which in this case is a
NotifyInputDevicesChangedArgs. It is incorrect to send that event event
when we intend to send no event.
Bug: 281671810
Test: atest inputflinger_tests
Change-Id: Ib78b3c354129f8494ee52115b2b99e210ceba6bf
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions