tweak for const correctness on apple
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 21 Jan 2013 19:42:34 +0000 (19:42 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 21 Jan 2013 19:42:34 +0000 (19:42 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13956 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session.cc

index 3a2f035e738d1ce737a6fef103bd90dbe1a34e63..3281ff2f98e515ccdd66a24ba66377ffc55ab81d 100644 (file)
@@ -4201,7 +4201,7 @@ Session::add_automation_list(AutomationList *al)
 bool
 Session::have_rec_enabled_track () const
 {
-       return g_atomic_int_get (&_have_rec_enabled_track) == 1;
+       return g_atomic_int_get (const_cast<gint*>(&_have_rec_enabled_track)) == 1;
 }
 
 /** Update the state of our rec-enabled tracks flag */