diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-07-07 04:02:07 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-07-22 17:13:28 +0300 |
commit | 668c87732a53560ffbe1ea1c52a880188da11e9f (patch) | |
tree | 6ca46c04272b09b161f18d5f52054f9ffa130228 /test/camera/capture.cpp | |
parent | bb682d258517c7ed9c773f184df113e83f26c4f2 (diff) |
cam: options: Drop some OptionValue cast operators
While OptionValue cast operators to int and std::string allow useful
shortcut syntaxes, the cast operators to KeyValueParser::Options and
std::vector<OptionValue> are less useful. A an explicit static_cast call
would be more cumbersome to write than an explicit .toKeyValues() or
toArray(), and implicit cast hide too much of what's going on.
Drop those two cast operators, and replace the only implicit cast
occurrence with .toKeyValues(). While at it, drop the local opts
variable in StreamKeyValueParser::roles() as it isn't used.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/camera/capture.cpp')
0 files changed, 0 insertions, 0 deletions