Drawable Renderer (#1570), CI warnings

This commit is contained in:
Tim Sylvester
2023-06-12 13:54:03 -07:00
committed by Bart Louwers
parent cc58b83609
commit 5e97b31d71
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ protected:
public:
LayerGroupBase(const LayerGroupBase&) = delete;
LayerGroupBase& operator=(const LayerGroupBase&) = delete;
virtual ~LayerGroupBase() = default;
~LayerGroupBase() override = default;
/// Whether the drawables should be drawn
bool getEnabled() const { return enabled; }

View File

@@ -25,7 +25,7 @@ public:
std::optional<T> constant() const {
return value.match([&](const T& t) { return std::optional<T>(t); },
[&](const auto&) { return std::optional<T>(); });
[&](const auto&) { return std::optional<T>{}; });
}
T constantOr(const T& t) const { return constant().value_or(t); }