another fix for complaints from OS X gcc about constness
git-svn-id: svn://localhost/ardour2/branches/3.0@13360 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -104,7 +104,7 @@ class Source : public SessionObject
|
||||
|
||||
virtual void inc_use_count ();
|
||||
virtual void dec_use_count ();
|
||||
int use_count() const { return g_atomic_int_get (&_use_count); }
|
||||
int use_count() const { return g_atomic_int_get (const_cast<gint*>(&_use_count)); }
|
||||
bool used() const { return use_count() > 0; }
|
||||
uint32_t level() const { return _level; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user