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>
This commit is contained in:
parent
1735d176bc
commit
27483e971f
2 changed files with 20 additions and 20 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue