Fix const warning
This commit is contained in:
parent
12ad052d98
commit
5979647c22
@ -67,7 +67,7 @@ public:
|
|||||||
void start_touch (timepos_t const & when);
|
void start_touch (timepos_t const & when);
|
||||||
void stop_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 writing() const { return _auto_state == Write; }
|
||||||
bool touch_enabled() const { return _auto_state & (Touch | Latch); }
|
bool touch_enabled() const { return _auto_state & (Touch | Latch); }
|
||||||
|
Loading…
Reference in New Issue
Block a user