apps: lc-compliance: Use array instead of std::vector
There is no reason to use `std::vector` for this static data, a simple array will do fine. Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
5c3eb98374
commit
6fd3ac82b5
1 changed files with 3 additions and 2 deletions
|
@ -18,8 +18,9 @@ namespace {
|
|||
|
||||
using namespace libcamera;
|
||||
|
||||
const std::vector<int> NUMREQUESTS = { 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 };
|
||||
const std::vector<StreamRole> ROLES = {
|
||||
const int NUMREQUESTS[] = { 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 };
|
||||
|
||||
const StreamRole ROLES[] = {
|
||||
StreamRole::Raw,
|
||||
StreamRole::StillCapture,
|
||||
StreamRole::VideoRecording,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue