X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fgraph.cc;h=3e878533193afcada7f3d5d9f0bcb3958c890c2d;hb=f6d29abfc75c460b9e35717f2907e4e61bf38058;hp=72017d1b36472efb883b85945f34d337257ea726;hpb=2a6a16f980ff9181b138f7a30aedfbde4426a591;p=ardour.git diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc index 72017d1b36..3e87853319 100644 --- a/libs/ardour/graph.cc +++ b/libs/ardour/graph.cc @@ -32,8 +32,6 @@ #include "ardour/process_thread.h" #include "ardour/audioengine.h" -#include - #include "i18n.h" using namespace ARDOUR; @@ -224,7 +222,7 @@ Graph::trigger (GraphNode* n) void Graph::dec_ref() { - if (g_atomic_int_dec_and_test (&_finished_refcount)) { + if (g_atomic_int_dec_and_test (const_cast (&_finished_refcount))) { /* We have run all the nodes that are at the `output' end of the graph, so there is nothing more to do this time around.