summaryrefslogtreecommitdiff
path: root/src/apps
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2024-12-19 19:07:00 +0100
committerBarnabás Pőcze <pobrn@protonmail.com>2025-02-27 17:31:04 +0100
commit6fd3ac82b5e8c524d9fdbfff6c275f3069785e85 (patch)
tree00bfa077b8c77cc5a7c4fcc3a629e9441bbc8b31 /src/apps
parent5c3eb9837419e9d23cfeb8814fc1b2e3b48c15f2 (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')
-rw-r--r--src/apps/lc-compliance/tests/capture_test.cpp5
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,