summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-12-29 21:34:13 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-01-03 15:31:13 +0200
commit46b32fa0e48aed16778c6e8d324d65473fbd06b7 (patch)
tree01cdc728f3944af03ad7e348d677b234d9455441
parent8cbda75a8d48670184a79b4e52dce9e0dd81f9d9 (diff)
libcamera: controls: Use ASSERT() instead of assert()
The ASSERT() macro integrates with the logging infrastructure, use it to replace assert(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/controls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp
index 0d8c0a5c..03ac6345 100644
--- a/src/libcamera/controls.cpp
+++ b/src/libcamera/controls.cpp
@@ -527,7 +527,7 @@ ControlInfo::ControlInfo(Span<const ControlValue> values,
ControlInfo::ControlInfo(std::set<bool> values, bool def)
: min_(false), max_(true), def_(def), values_({ false, true })
{
- assert(values.count(def) && values.size() == 2);
+ ASSERT(values.count(def) && values.size() == 2);
}
/**