Commit 62b605ba authored by Tristan Matthews's avatar Tristan Matthews

* #9782: yamlnode: make some methods const

parent fb1b1df3
......@@ -52,7 +52,7 @@ class YamlNode {
virtual ~YamlNode() {}
NodeType getType() {
NodeType getType() const {
return type;
}
......@@ -139,7 +139,7 @@ class ScalarNode : public YamlNode {
ScalarNode(std::string s="", YamlNode *top=NULL) : YamlNode(SCALAR, top), str(s) {}
ScalarNode(bool b, YamlNode *top=NULL) : YamlNode(SCALAR, top), str(b ? "true" : "false") {}
const std::string &getValue() {
const std::string &getValue() const {
return str;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment