diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-29 16:13:33 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-29 16:13:33 +0000 |
commit | aa13dec8f5fc1e809ae37bced4545934007594c9 (patch) | |
tree | 663a22ed7338d604a2672e028d54ed38de6c9bca /libs/pbd | |
parent | 52423fa8c3a460c5057b560121a84758f108a17c (diff) |
fix complaints from OS X gcc about constness
git-svn-id: svn://localhost/ardour2/branches/3.0@13359 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/pbd/stateful.h | 4 |
1 files 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<gint*>(&_stateful_frozen)) > 0; } protected: @@ -123,7 +123,7 @@ class Stateful { private: PBD::ID _id; - int32_t _stateful_frozen; + gint _stateful_frozen; }; } // namespace PBD |