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;
|
||||
int asInt() const;
|
||||
bool asBool() const;
|
||||
template<typename T> const T& as() const {
|
||||
return *static_cast<const T*>(m_value.asPointer);
|
||||
template<typename T> const T* as() const {
|
||||
return static_cast<const T*>(m_value.asPointer);
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user