diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-07-20 00:17:38 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-07-20 13:25:02 +0300 |
commit | b0b66214892ff566c0f4342bb28eaacb1cfa8d68 (patch) | |
tree | 5053ec529564c3eb9cad6506452d9b985b576fcc /test/v4l2_subdevice/list_formats.cpp | |
parent | 38136f9e11d1e1af3880bc3382e97e5a7250568d (diff) |
test: control_list: Use get() to test for control presence
Now that the ControlList::get() function returns an std::optional<>, it
is the preferred way to test if a control is present in a ControlList.
Use it in the test to prepare for removal of ControlList::contains().
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'test/v4l2_subdevice/list_formats.cpp')
0 files changed, 0 insertions, 0 deletions