mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 08:57:41 +01:00
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:
parent
aa13dec8f5
commit
4a843b6603
1 changed files with 1 additions and 1 deletions
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue