From c1386bafcec57a056911ad9363aa468d35657029 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 5 Nov 2011 17:58:35 +0000 Subject: Coding style tinkering. git-svn-id: svn://localhost/ardour2/branches/3.0@10464 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/graph.cc | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'libs/ardour/graph.cc') diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc index 9dfc611e17..aea4b2cccf 100644 --- a/libs/ardour/graph.cc +++ b/libs/ardour/graph.cc @@ -223,7 +223,7 @@ Graph::prep() /* Trigger the initial nodes for processing, which are the ones at the `input' end */ for (i=_init_trigger_list[chain].begin(); i!=_init_trigger_list[chain].end(); i++) { - this->trigger( i->get() ); + trigger (i->get ()); } } @@ -247,7 +247,7 @@ Graph::dec_ref() the graph, so there is nothing more to do this time around. */ - this->restart_cycle(); + restart_cycle (); } } @@ -266,7 +266,7 @@ Graph::restart_cycle() return; } - this->prep(); + prep (); if (_graph_empty) { goto again; @@ -280,12 +280,14 @@ static bool is_feedback (boost::shared_ptr routelist, Route* from, boost::shared_ptr to) { for (RouteList::iterator ri=routelist->begin(); ri!=routelist->end(); ri++) { - if ((*ri).get() == from) + if ((*ri).get() == from) { return false; - if ((*ri) == to) + } + if ((*ri) == to) { return true; + } } - assert(0); + return false; } @@ -293,12 +295,14 @@ static bool is_feedback (boost::shared_ptr routelist, boost::shared_ptr from, Route* to) { for (RouteList::iterator ri=routelist->begin(); ri!=routelist->end(); ri++) { - if ((*ri).get() == to) + if ((*ri).get() == to) { return true; - if ((*ri) == from) + } + if ((*ri) == from) { return false; + } } - assert(0); + return false; } @@ -377,11 +381,13 @@ Graph::rechain (boost::shared_ptr routelist) (*ai)->_init_refcount[chain] += 1; } - if (!has_input) + if (!has_input) { _init_trigger_list[chain].push_back (*ni); + } - if (!has_output) + if (!has_output) { _init_finished_refcount[chain] += 1; + } } _pending_chain = chain; @@ -502,7 +508,7 @@ Graph::main_thread() return; } - this->prep(); + prep (); if (_graph_empty && !_quit_threads) { _callback_done_sem.signal (); -- cgit v1.2.3