diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-12 02:46:03 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-12 02:46:03 -0500 |
commit | d7fb1cb3093e17d79598c9aaabedf77465960ac6 (patch) | |
tree | 0aa9f63f3351a0b82faba413779486d9be0ece43 /hscript/key.hh | |
parent | 15602ba87871b11a7949248a3e732ae89d44417c (diff) | |
download | horizon-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.hh | 4 |
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: |