Skip to content
Snippets Groups Projects
Commit 62b605ba authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9782: yamlnode: make some methods const

parent fb1b1df3
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ class YamlNode { ...@@ -52,7 +52,7 @@ class YamlNode {
virtual ~YamlNode() {} virtual ~YamlNode() {}
NodeType getType() { NodeType getType() const {
return type; return type;
} }
...@@ -139,7 +139,7 @@ class ScalarNode : public YamlNode { ...@@ -139,7 +139,7 @@ class ScalarNode : public YamlNode {
ScalarNode(std::string s="", YamlNode *top=NULL) : YamlNode(SCALAR, top), str(s) {} 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") {} ScalarNode(bool b, YamlNode *top=NULL) : YamlNode(SCALAR, top), str(b ? "true" : "false") {}
const std::string &getValue() { const std::string &getValue() const {
return str; return str;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment