another fix for complaints from OS X gcc about constness
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 29 Oct 2012 16:14:55 +0000 (16:14 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 29 Oct 2012 16:14:55 +0000 (16:14 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13360 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/source.h

index a3b5fd817a14f9d4b308c81d4b4c027a8cefa12f..5e851702d4114944e6a1ee40b80c873933575eeb 100644 (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; }