From a473d630eb165272992e90f8d854b1d66ec0be63 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Jun 2011 16:50:12 +0000 Subject: Fix broken whitespace. I'd apologize for the compile times if it was my fault :D git-svn-id: svn://localhost/ardour2/branches/3.0@9654 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/pannable.cc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'libs/ardour/pannable.cc') diff --git a/libs/ardour/pannable.cc b/libs/ardour/pannable.cc index f8b8ea9a89..dde2d3067c 100644 --- a/libs/ardour/pannable.cc +++ b/libs/ardour/pannable.cc @@ -114,14 +114,14 @@ Pannable::set_automation_state (AutoState state) _auto_state = state; const Controls& c (controls()); - + for (Controls::const_iterator ci = c.begin(); ci != c.end(); ++ci) { boost::shared_ptr ac = boost::dynamic_pointer_cast(ci->second); if (ac) { ac->alist()->set_automation_state (state); } } - + session().set_dirty (); automation_state_changed (_auto_state); } @@ -134,14 +134,14 @@ Pannable::set_automation_style (AutoStyle style) _auto_style = style; const Controls& c (controls()); - + for (Controls::const_iterator ci = c.begin(); ci != c.end(); ++ci) { boost::shared_ptr ac = boost::dynamic_pointer_cast(ci->second); if (ac) { ac->alist()->set_automation_style (style); } } - + session().set_dirty (); automation_style_changed (); } @@ -151,7 +151,7 @@ void Pannable::start_touch (double when) { const Controls& c (controls()); - + for (Controls::const_iterator ci = c.begin(); ci != c.end(); ++ci) { boost::shared_ptr ac = boost::dynamic_pointer_cast(ci->second); if (ac) { @@ -165,7 +165,7 @@ void Pannable::stop_touch (bool mark, double when) { const Controls& c (controls()); - + for (Controls::const_iterator ci = c.begin(); ci != c.end(); ++ci) { boost::shared_ptr ac = boost::dynamic_pointer_cast(ci->second); if (ac) { @@ -192,7 +192,7 @@ Pannable::state (bool full) snprintf (buf, sizeof(buf), "%.12g", pan_azimuth_control->get_value()); control_node->add_property (X_("value"), buf); node->add_child_nocopy (*control_node); - + control_node = new XMLNode (X_("width")); snprintf (buf, sizeof(buf), "%.12g", pan_width_control->get_value()); control_node->add_property (X_("value"), buf); @@ -212,7 +212,7 @@ Pannable::state (bool full) snprintf (buf, sizeof(buf), "%.12g", pan_lfe_control->get_value()); control_node->add_property (X_("value"), buf); node->add_child_nocopy (*control_node); - + node->add_child_nocopy (get_automation_xml_state ()); return *node; @@ -225,7 +225,7 @@ Pannable::set_state (const XMLNode& root, int /*version - not used*/) warning << string_compose (_("Pannable given XML data for %1 - ignored"), root.name()) << endmsg; return -1; } - + XMLNodeList nlist; XMLNodeConstIterator niter; const XMLProperty *prop; @@ -262,20 +262,20 @@ Pannable::set_state (const XMLNode& root, int /*version - not used*/) set_automation_xml_state (**niter, PanAzimuthAutomation); } } - + _has_state = true; return 0; } -string +string Pannable::value_as_string (boost::shared_ptr ac) const { boost::shared_ptr p = panner (); if (p) { return p->value_as_string (ac); - } + } return Automatable::value_as_string (ac); } -- cgit v1.2.3