Use 0/1 not no/yes for bool.
authorCarl Hetherington <cth@carlh.net>
Thu, 9 Oct 2014 12:45:17 +0000 (13:45 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 9 Oct 2014 12:45:17 +0000 (13:45 +0100)
src/cxml.cc

index 9a6a4e1307fb0e95961735cbe437d1779a4e69f5..f6305d0392161102876ac9c943b65b0367c4f467 100644 (file)
@@ -259,7 +259,7 @@ cxml::Node::set_string_content (string c)
 void
 cxml::Node::set_bool_content (bool c)
 {
-       _content = c ? "yes" : "no";
+       _content = c ? "1" : "0";
 }
 
 cxml::NodePtr