From 27483e971fb43c0874b8399e7431dd805efa3994 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 23 May 2022 19:24:09 +0300 Subject: libcamera: yaml_object: Turn Type into an enum class Turn the Type enum into an enum class to force qualifying 'List' and 'Dictionary' in the YamlObject namespace scope. This will help avoiding ambiguities when adding iterator support. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- include/libcamera/internal/yaml_parser.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/libcamera/internal/yaml_parser.h b/include/libcamera/internal/yaml_parser.h index 3a4f3052..e002fcf5 100644 --- a/include/libcamera/internal/yaml_parser.h +++ b/include/libcamera/internal/yaml_parser.h @@ -28,15 +28,15 @@ public: bool isValue() const { - return type_ == Value; + return type_ == Type::Value; } bool isList() const { - return type_ == List; + return type_ == Type::List; } bool isDictionary() const { - return type_ == Dictionary; + return type_ == Type::Dictionary; } #ifndef __DOXYGEN__ @@ -65,7 +65,7 @@ private: friend class YamlParserContext; - enum Type { + enum class Type { Dictionary, List, Value, -- cgit v1.2.1