13
0

Fix const warning

This commit is contained in:
Robin Gareus 2023-02-07 03:43:00 +01:00
parent 12ad052d98
commit 5979647c22
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -67,7 +67,7 @@ public:
void start_touch (timepos_t const & when);
void stop_touch (timepos_t const & when);
bool touching() const { return g_atomic_int_get (&_touching); }
bool touching() const { return g_atomic_int_get (const_cast<GATOMIC_QUAL gint*> (&_touching)); }
bool writing() const { return _auto_state == Write; }
bool touch_enabled() const { return _auto_state & (Touch | Latch); }