summaryrefslogtreecommitdiff
path: root/libs/ardour/configuration.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
committerDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
commitbb9cc45cd22af67ac275a5e73accbe14fee664d8 (patch)
treee52977d3eae6ff07b856088041a080a2fa3e5b79 /libs/ardour/configuration.cc
parent8c4ce1e2ce35571aed5a686671431fdfffae7f8c (diff)
Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/configuration.cc')
-rw-r--r--libs/ardour/configuration.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/libs/ardour/configuration.cc b/libs/ardour/configuration.cc
index 79f36c86d8..68f13f8245 100644
--- a/libs/ardour/configuration.cc
+++ b/libs/ardour/configuration.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1999-2009 Paul Davis
+ Copyright (C) 1999-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
@@ -48,20 +48,20 @@ bool
ConfigVariableBase::set_from_node (XMLNode const & node)
{
if (node.name() == "Config" || node.name() == "Canvas" || node.name() == "UI") {
-
+
/* ardour.rc */
-
+
const XMLProperty* prop;
XMLNodeList nlist;
XMLNodeConstIterator niter;
XMLNode* child;
-
+
nlist = node.children();
-
+
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
-
+
child = *niter;
-
+
if (child->name() == "Option") {
if ((prop = child->property ("name")) != 0) {
if (prop->value() == _name) {
@@ -73,7 +73,7 @@ ConfigVariableBase::set_from_node (XMLNode const & node)
}
}
}
-
+
} else if (node.name() == "Options") {
/* session file */
@@ -82,13 +82,13 @@ ConfigVariableBase::set_from_node (XMLNode const & node)
XMLNodeConstIterator oiter;
XMLNode* option;
const XMLProperty* opt_prop;
-
+
olist = node.children();
-
+
for (oiter = olist.begin(); oiter != olist.end(); ++oiter) {
-
+
option = *oiter;
-
+
if (option->name() == _name) {
if ((opt_prop = option->property ("val")) != 0) {
set_from_string (opt_prop->value());
@@ -97,7 +97,7 @@ ConfigVariableBase::set_from_node (XMLNode const & node)
}
}
}
-
+
return false;
}
@@ -125,7 +125,7 @@ ConfigVariableBase::notify ()
void
ConfigVariableBase::miss ()
{
- // placeholder for any debugging desired when a config variable
+ // placeholder for any debugging desired when a config variable
// is set but to the same value as it already has
}