From 1716d4e86f58f7827786f03290bcbec7d9415a29 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 6 Mar 2020 17:18:15 +0200 Subject: libcamera: controls: Convert bool ControlValue to lowercase strings The C++ boolean types are lower case, and std::ostream::operator<<(bool) produces a lowercase string (when std::boolalpha is in effect, otherwise it produces 0 or 1). Switch ControlValue::toString() to produce lowercase "true" and "false" strings too for consistency. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/libcamera/controls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcamera/controls.cpp') diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp index 0663a220..94bdbdd9 100644 --- a/src/libcamera/controls.cpp +++ b/src/libcamera/controls.cpp @@ -198,7 +198,7 @@ std::string ControlValue::toString() const switch (type_) { case ControlTypeBool: { const bool *value = reinterpret_cast(data); - str += *value ? "True" : "False"; + str += *value ? "true" : "false"; break; } case ControlTypeByte: { -- cgit v1.2.1