From 4a843b6603bfde03916d96e6509bd6ba4e124ac1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 29 Oct 2012 16:14:55 +0000 Subject: [PATCH] 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 --- libs/ardour/ardour/source.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h index a3b5fd817a..5e851702d4 100644 --- a/libs/ardour/ardour/source.h +++ b/libs/ardour/ardour/source.h @@ -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(&_use_count)); } bool used() const { return use_count() > 0; } uint32_t level() const { return _level; }