summaryrefslogtreecommitdiff
path: root/libs/ardour/port_set.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-04 22:46:48 +0000
committerDavid Robillard <d@drobilla.net>2011-04-04 22:46:48 +0000
commit62e730b57ab30bb8642c5682b53b7c534d923a24 (patch)
tree92741da0e56bc6e5579b08a9ab7230e5054a92c9 /libs/ardour/port_set.cc
parent847e8f06107293254606d499aeb3e8a2006b9b78 (diff)
Fix broken whitespace (no functional changes).
git-svn-id: svn://localhost/ardour2/branches/3.0@9288 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/port_set.cc')
-rw-r--r--libs/ardour/port_set.cc54
1 files changed, 27 insertions, 27 deletions
diff --git a/libs/ardour/port_set.cc b/libs/ardour/port_set.cc
index 35c8d9f410..60f36d0f70 100644
--- a/libs/ardour/port_set.cc
+++ b/libs/ardour/port_set.cc
@@ -34,41 +34,41 @@ PortSet::PortSet()
static bool sort_ports_by_name (Port* a, Port* b)
{
- string aname (a->name());
- string bname (b->name());
+ string aname (a->name());
+ string bname (b->name());
- string::size_type last_digit_position_a = aname.size();
- string::reverse_iterator r_iterator = aname.rbegin();
+ string::size_type last_digit_position_a = aname.size();
+ string::reverse_iterator r_iterator = aname.rbegin();
- while (r_iterator!= aname.rend() && Glib::Unicode::isdigit(*r_iterator)) {
- r_iterator++;
- last_digit_position_a--;
- }
+ while (r_iterator!= aname.rend() && Glib::Unicode::isdigit(*r_iterator)) {
+ r_iterator++;
+ last_digit_position_a--;
+ }
- string::size_type last_digit_position_b = bname.size();
- r_iterator = bname.rbegin();
+ string::size_type last_digit_position_b = bname.size();
+ r_iterator = bname.rbegin();
- while (r_iterator != bname.rend() && Glib::Unicode::isdigit(*r_iterator)) {
- r_iterator++;
- last_digit_position_b--;
- }
+ while (r_iterator != bname.rend() && Glib::Unicode::isdigit(*r_iterator)) {
+ r_iterator++;
+ last_digit_position_b--;
+ }
- // if some of the names don't have a number as posfix, compare as strings
+ // if some of the names don't have a number as posfix, compare as strings
- if (last_digit_position_a == aname.size() or last_digit_position_b == bname.size()) {
- return aname < bname;
- }
+ if (last_digit_position_a == aname.size() or last_digit_position_b == bname.size()) {
+ return aname < bname;
+ }
- const std::string prefix_a = aname.substr(0, last_digit_position_a - 1);
- const unsigned int posfix_a = std::atoi(aname.substr(last_digit_position_a, aname.size() - last_digit_position_a).c_str());
- const std::string prefix_b = bname.substr(0, last_digit_position_b - 1);
- const unsigned int posfix_b = std::atoi(bname.substr(last_digit_position_b, bname.size() - last_digit_position_b).c_str());
+ const std::string prefix_a = aname.substr(0, last_digit_position_a - 1);
+ const unsigned int posfix_a = std::atoi(aname.substr(last_digit_position_a, aname.size() - last_digit_position_a).c_str());
+ const std::string prefix_b = bname.substr(0, last_digit_position_b - 1);
+ const unsigned int posfix_b = std::atoi(bname.substr(last_digit_position_b, bname.size() - last_digit_position_b).c_str());
- if (prefix_a != prefix_b) {
- return aname < bname;
- } else {
- return posfix_a < posfix_b;
- }
+ if (prefix_a != prefix_b) {
+ return aname < bname;
+ } else {
+ return posfix_a < posfix_b;
+ }
}
void