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:
Barnabás Pőcze 2024-12-19 19:07:00 +01:00
parent 5c3eb98374
commit 6fd3ac82b5

View file

@ -18,8 +18,9 @@ namespace {
using namespace libcamera; using namespace libcamera;
const std::vector<int> NUMREQUESTS = { 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 }; const int NUMREQUESTS[] = { 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 };
const std::vector<StreamRole> ROLES = {
const StreamRole ROLES[] = {
StreamRole::Raw, StreamRole::Raw,
StreamRole::StillCapture, StreamRole::StillCapture,
StreamRole::VideoRecording, StreamRole::VideoRecording,