summaryrefslogtreecommitdiff
path: root/hscript/key.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-12 02:46:03 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-12 02:46:03 -0500
commitd7fb1cb3093e17d79598c9aaabedf77465960ac6 (patch)
tree0aa9f63f3351a0b82faba413779486d9be0ece43 /hscript/key.hh
parent15602ba87871b11a7949248a3e732ae89d44417c (diff)
downloadhorizon-d7fb1cb3093e17d79598c9aaabedf77465960ac6.tar.gz
horizon-d7fb1cb3093e17d79598c9aaabedf77465960ac6.tar.bz2
horizon-d7fb1cb3093e17d79598c9aaabedf77465960ac6.tar.xz
horizon-d7fb1cb3093e17d79598c9aaabedf77465960ac6.zip
hscript: Key members are always /const/
Diffstat (limited to 'hscript/key.hh')
-rw-r--r--hscript/key.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/hscript/key.hh b/hscript/key.hh
index aa8ed81..960095c 100644
--- a/hscript/key.hh
+++ b/hscript/key.hh
@@ -65,7 +65,7 @@ public:
*/
class BooleanKey : public Key {
protected:
- bool value;
+ const bool value;
BooleanKey(int _line, bool my_value) : Key(_line), value(my_value) {}
/*! Parse a string into a boolean.
@@ -91,7 +91,7 @@ public:
/*! Base Key class that parses and handles single string values. */
class StringKey : public Key {
protected:
- std::string _value;
+ const std::string _value;
StringKey(int _line, std::string my_str) : Key(_line), _value(my_str) {}
public: