fix complaints from OS X gcc about constness

git-svn-id: svn://localhost/ardour2/branches/3.0@13359 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-10-29 16:13:33 +00:00
parent 52423fa8c3
commit aa13dec8f5

View File

@ -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