diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-24 13:08:36 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:18:15 -0400 |
commit | 060f9cb35555c42cc0ad6b8dfbea9156cec97f34 (patch) | |
tree | 6918975e6cdc6422720564b439f8402dcc97e586 /libs/ardour/ardour/diskstream.h | |
parent | 438f3e5141492ee4e8a4fe4f343e71d89743f03c (diff) |
fix const-cast warnings
Diffstat (limited to 'libs/ardour/ardour/diskstream.h')
-rw-r--r-- | libs/ardour/ardour/diskstream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/ardour/diskstream.h b/libs/ardour/ardour/diskstream.h index a298e3f2c8..fb9be653e1 100644 --- a/libs/ardour/ardour/diskstream.h +++ b/libs/ardour/ardour/diskstream.h @@ -103,8 +103,8 @@ class LIBARDOUR_API Diskstream : public SessionObject, public PublicDiskstream framecnt_t roll_delay() const { return _roll_delay; } void set_roll_delay (framecnt_t); - bool record_enabled() const { return g_atomic_int_get (&_record_enabled); } - bool record_safe () const { return g_atomic_int_get (&_record_safe); } + bool record_enabled() const { return g_atomic_int_get (const_cast<gint*>(&_record_enabled)); } + bool record_safe () const { return g_atomic_int_get (const_cast<gint*>(&_record_safe)); } virtual void set_record_enabled (bool yn) = 0; virtual void set_record_safe (bool yn) = 0; |