fix compiler const-cast warning

This commit is contained in:
Paul Davis
2015-06-19 08:10:35 -04:00
parent a1932c7feb
commit 2ec9151170

View File

@@ -56,7 +56,7 @@ struct LIBCANVAS_API WaveViewThreadRequest
WaveViewThreadRequest () : stop (0) {}
bool should_stop () const { return (bool) g_atomic_int_get (&stop); }
bool should_stop () const { return (bool) g_atomic_int_get (const_cast<gint*>(&stop)); }
void cancel() { g_atomic_int_set (&stop, 1); }
RequestType type;