From aa13dec8f5fc1e809ae37bced4545934007594c9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 29 Oct 2012 16:13:33 +0000 Subject: [PATCH] fix complaints from OS X gcc about constness git-svn-id: svn://localhost/ardour2/branches/3.0@13359 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/pbd/stateful.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/pbd/pbd/stateful.h b/libs/pbd/pbd/stateful.h index 154e806644..4808bc2911 100644 --- a/libs/pbd/pbd/stateful.h +++ b/libs/pbd/pbd/stateful.h @@ -91,7 +91,7 @@ class Stateful { virtual void suspend_property_changes (); virtual void resume_property_changes (); - bool property_changes_suspended() const { return g_atomic_int_get (&_stateful_frozen) > 0; } + bool property_changes_suspended() const { return g_atomic_int_get (const_cast(&_stateful_frozen)) > 0; } protected: @@ -123,7 +123,7 @@ class Stateful { private: PBD::ID _id; - int32_t _stateful_frozen; + gint _stateful_frozen; }; } // namespace PBD