figments: input: fix as() signature to return pointers
This commit is contained in:
parent
ccb58082a2
commit
39190d6506
@ -37,8 +37,8 @@ struct Variant {
|
|||||||
CRGB asRGB() const;
|
CRGB asRGB() const;
|
||||||
int asInt() const;
|
int asInt() const;
|
||||||
bool asBool() const;
|
bool asBool() const;
|
||||||
template<typename T> const T& as() const {
|
template<typename T> const T* as() const {
|
||||||
return *static_cast<const T*>(m_value.asPointer);
|
return static_cast<const T*>(m_value.asPointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user