NOOP, remove trailing tabs/whitespace.
[ardour.git] / libs / pbd / controllable_descriptor.cc
index 392b917ec888d514e4e9cfb85bd19851437702ac..0228d004e4984729e9b29ad736ccef8b8f6ab456 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2009 Paul Davis 
+    Copyright (C) 2009 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -35,14 +35,14 @@ ControllableDescriptor::set (const std::string& str)
        string front = str.substr (0, first_space);
        string back = str.substr (first_space);
 
-       vector<string> path;    
+       vector<string> path;
        split (front, path, '/');
 
        if (path.size() < 2) {
                return -1;
        }
 
-       vector<string> rest;    
+       vector<string> rest;
        split (back, rest, ' ');
 
        if (rest.size() < 1) {
@@ -72,6 +72,9 @@ ControllableDescriptor::set (const std::string& str)
        if (path[1] == "gain") {
                _subtype = Gain;
 
+       } else if (path[1] == "trim") {
+               _subtype = Trim;
+
        } else if (path[1] == "solo") {
                _subtype = Solo;
 
@@ -103,7 +106,7 @@ ControllableDescriptor::set (const std::string& str)
                        return -1;
                }
        } else if (path[1] == "send") {
-               
+
                if (path.size() == 3 && rest.size() == 2) {
                        if (path[2] == "gain") {
                                _subtype = SendGain;
@@ -115,7 +118,7 @@ ControllableDescriptor::set (const std::string& str)
                        return -1;
                }
        }
-       
+
        return 0;
 }
 
@@ -124,7 +127,7 @@ ControllableDescriptor::rid() const
 {
        if (banked()) {
                return _rid + _bank_offset;
-       }               
+       }
 
        return _rid;
 }
@@ -134,7 +137,7 @@ ControllableDescriptor::target (uint32_t n) const
 {
        if (n < _target.size()) {
                return _target[n];
-       } 
-       
+       }
+
        return 0;
 }