summaryrefslogtreecommitdiff
path: root/src/libcamera/yaml_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/yaml_parser.cpp')
-rw-r--r--src/libcamera/yaml_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/yaml_parser.cpp b/src/libcamera/yaml_parser.cpp
index 84cb57d6..c96e99e1 100644
--- a/src/libcamera/yaml_parser.cpp
+++ b/src/libcamera/yaml_parser.cpp
@@ -319,7 +319,7 @@ template<typename T,
std::optional<std::vector<T>> YamlObject::getList() const
{
if (type_ != Type::List)
- return {};
+ return std::nullopt;
std::vector<T> values;
values.reserve(list_.size());
@@ -327,7 +327,7 @@ std::optional<std::vector<T>> YamlObject::getList() const
for (const YamlObject &entry : asList()) {
const auto value = entry.get<T>();
if (!value)
- return {};
+ return std::nullopt;
values.emplace_back(*value);
}