diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2024-12-19 19:07:00 +0100 |
---|---|---|
committer | Barnabás Pőcze <pobrn@protonmail.com> | 2025-02-27 17:31:04 +0100 |
commit | 6fd3ac82b5e8c524d9fdbfff6c275f3069785e85 (patch) | |
tree | 00bfa077b8c77cc5a7c4fcc3a629e9441bbc8b31 /src/apps/lc-compliance/tests/capture_test.cpp | |
parent | 5c3eb9837419e9d23cfeb8814fc1b2e3b48c15f2 (diff) |
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>
Diffstat (limited to 'src/apps/lc-compliance/tests/capture_test.cpp')
-rw-r--r-- | src/apps/lc-compliance/tests/capture_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/apps/lc-compliance/tests/capture_test.cpp b/src/apps/lc-compliance/tests/capture_test.cpp index db196a94..97465a61 100644 --- a/src/apps/lc-compliance/tests/capture_test.cpp +++ b/src/apps/lc-compliance/tests/capture_test.cpp @@ -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, |