summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-23 19:24:09 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-16 02:43:46 +0300
commit27483e971fb43c0874b8399e7431dd805efa3994 (patch)
treee59c11953c8a820ff61f6e031463c0e9ea69afcd /include
parent1735d176bc6139ae76dae0c84ab15bda5884764d (diff)
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/yaml_parser.h8
1 files changed, 4 insertions, 4 deletions
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,