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 ++++++++++++++++++------------ libs/ardour/route.cc | 3 +-- 2 files changed, 19 insertions(+), 14 deletions(-) (limited to 'libs/ardour') 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 (); diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 7521f183da..0b5ccdc53d 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -65,7 +65,6 @@ #include "ardour/session.h" #include "ardour/timestamps.h" #include "ardour/utils.h" -#include "ardour/graph.h" #include "ardour/unknown_processor.h" #include "ardour/capturing_processor.h" @@ -82,7 +81,7 @@ PBD::Signal0 Route::RemoteControlIDChange; Route::Route (Session& sess, string name, Flag flg, DataType default_type) : SessionObject (sess, name) , Automatable (sess) - , GraphNode( sess.route_graph ) + , GraphNode (sess.route_graph) , _active (true) , _signal_latency (0) , _initial_delay (0) -- cgit v1.2.3