From 46b32fa0e48aed16778c6e8d324d65473fbd06b7 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 29 Dec 2021 21:34:13 +0200 Subject: 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 Reviewed-by: Umang Jain Reviewed-by: Kieran Bingham --- src/libcamera/controls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 values, ControlInfo::ControlInfo(std::set 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); } /** -- cgit v1.2.1