diff options
author | Marissa Wall <marissaw@google.com> | 2020-02-20 11:41:39 -0800 |
---|---|---|
committer | Marissa Ikonomidis <marissaw@google.com> | 2020-02-25 17:43:29 +0000 |
commit | e2127863fb4b8e31e8c6b56f5ee85a7c2ef9a6a6 (patch) | |
tree | 7ce08e6c7293df8e7783f2b6eb0cbe940139780a /identity/support/src/cppbor_parse.cpp | |
parent | bfefeddfeff9f555d2258fef98d223135480e4dc (diff) |
gralloc4-vts: correctly instantiate std::optional
std::optional defaults to containing std::nullopt_t. Using "->" or
"." on an std::optional object that does not contain a value is
undefined. Clang seems to ignore the whole line.
SetSmpte2086 and SetCta861_3 both incorrectly instantiate their
std::optional types. The std::optional types contain std::nullopt_t
when they are passed into encode. When mapper decodes the fields,
they are empty.
Update std::optionals to be instantiated correctly.
Bug: 149931805
Test: VtsHalGraphicsMapperV4_0
Change-Id: I046242f8261a5378228231b89b2eedec242667cb
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions