Fix indentation in MonitorProcessor::state
authorTim Mayberry <mojofunk@gmail.com>
Sat, 15 Aug 2015 08:25:57 +0000 (18:25 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Sun, 16 Apr 2017 04:02:20 +0000 (14:02 +1000)
libs/ardour/monitor_processor.cc

index 811d5a15b34effa8d61a8fc46d5df4dfc659355d..6dda3cc7e04937cfe49160d2d9eabafcbb277a4a 100644 (file)
@@ -227,46 +227,46 @@ XMLNode&
 MonitorProcessor::state (bool full)
 {
        LocaleGuard lg;
-        XMLNode& node (Processor::state (full));
-        char buf[64];
+       XMLNode& node(Processor::state(full));
+       char buf[64];
 
        /* this replaces any existing "type" property */
 
        node.add_property (X_("type"), X_("monitor"));
 
-        snprintf (buf, sizeof(buf), "%.12g", _dim_level.val());
-        node.add_property (X_("dim-level"), buf);
+    snprintf (buf, sizeof(buf), "%.12g", _dim_level.val());
+    node.add_property (X_("dim-level"), buf);
 
-        snprintf (buf, sizeof(buf), "%.12g", _solo_boost_level.val());
-        node.add_property (X_("solo-boost-level"), buf);
+    snprintf (buf, sizeof(buf), "%.12g", _solo_boost_level.val());
+    node.add_property (X_("solo-boost-level"), buf);
 
-        node.add_property (X_("cut-all"), (_cut_all ? "yes" : "no"));
-        node.add_property (X_("dim-all"), (_dim_all ? "yes" : "no"));
-        node.add_property (X_("mono"), (_mono ? "yes" : "no"));
+    node.add_property (X_("cut-all"), (_cut_all ? "yes" : "no"));
+    node.add_property (X_("dim-all"), (_dim_all ? "yes" : "no"));
+    node.add_property (X_("mono"), (_mono ? "yes" : "no"));
 
-        uint32_t limit = _channels.size();
+    uint32_t limit = _channels.size();
 
-        snprintf (buf, sizeof (buf), "%u", limit);
-        node.add_property (X_("channels"), buf);
+    snprintf (buf, sizeof (buf), "%u", limit);
+    node.add_property (X_("channels"), buf);
 
-        XMLNode* chn_node;
-        uint32_t chn = 0;
+    XMLNode* chn_node;
+    uint32_t chn = 0;
 
-        for (vector<ChannelRecord*>::const_iterator x = _channels.begin(); x != _channels.end(); ++x, ++chn) {
-                chn_node = new XMLNode (X_("Channel"));
+    for (vector<ChannelRecord*>::const_iterator x = _channels.begin(); x != _channels.end(); ++x, ++chn) {
+        chn_node = new XMLNode (X_("Channel"));
 
-                snprintf (buf, sizeof (buf), "%u", chn);
-                chn_node->add_property ("id", buf);
+        snprintf (buf, sizeof (buf), "%u", chn);
+        chn_node->add_property ("id", buf);
 
-                chn_node->add_property (X_("cut"), (*x)->cut == GAIN_COEFF_UNITY ? "no" : "yes");
-                chn_node->add_property (X_("invert"), (*x)->polarity == GAIN_COEFF_UNITY ? "no" : "yes");
-                chn_node->add_property (X_("dim"), (*x)->dim ? "yes" : "no");
-                chn_node->add_property (X_("solo"), (*x)->soloed ? "yes" : "no");
+        chn_node->add_property (X_("cut"), (*x)->cut == GAIN_COEFF_UNITY ? "no" : "yes");
+        chn_node->add_property (X_("invert"), (*x)->polarity == GAIN_COEFF_UNITY ? "no" : "yes");
+        chn_node->add_property (X_("dim"), (*x)->dim ? "yes" : "no");
+        chn_node->add_property (X_("solo"), (*x)->soloed ? "yes" : "no");
 
-                node.add_child_nocopy (*chn_node);
-        }
+        node.add_child_nocopy (*chn_node);
+    }
 
-        return node;
+    return node;
 }
 
 void