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:
Paul Davis 2012-10-29 16:14:55 +00:00
parent aa13dec8f5
commit 4a843b6603

View file

@ -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; }