summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-13 09:44:56 +0000
committerCarl Hetherington <cth@carlh.net>2016-01-13 09:44:56 +0000
commitdda3e2036da42a1b1e00744546f9529dce4d76fb (patch)
tree1dabd1f883389ca279251c200107baaff0e07207 /src
parentb4e28a2b269b66597bb8fe654625795bdb356114 (diff)
Allow True in bool_child.
Diffstat (limited to 'src')
-rw-r--r--src/cxml.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cxml.cc b/src/cxml.cc
index fb8ca2d..567dc50 100644
--- a/src/cxml.cc
+++ b/src/cxml.cc
@@ -121,7 +121,7 @@ bool
cxml::Node::bool_child (string c) const
{
string const s = string_child (c);
- return (s == "1" || s == "yes");
+ return (s == "1" || s == "yes" || s == "True");
}
optional<bool>
@@ -132,7 +132,7 @@ cxml::Node::optional_bool_child (string c) const
return optional<bool> ();
}
- return (s.get() == "1" || s.get() == "yes");
+ return (s.get() == "1" || s.get() == "yes" || s.get() == "True");
}
void