diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-12-06 15:51:22 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-12-06 18:44:25 +0000 |
commit | 1c65c075ee4c7f98d9c1fac5ed7576b96374d4e9 (patch) | |
tree | 6bbc3ecd15d74450843b7049414b0c1950182c4b /src/script | |
parent | 64156ad4d1f50daf35250dc3b329a8a595594d87 (diff) |
Don't declare de facto const member functions as non-const
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/interpreter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index bb5a7158a5..ecac3b9e7e 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -305,8 +305,8 @@ private: uint32_t m_first_false_pos = NO_FALSE; public: - bool empty() { return m_stack_size == 0; } - bool all_true() { return m_first_false_pos == NO_FALSE; } + bool empty() const { return m_stack_size == 0; } + bool all_true() const { return m_first_false_pos == NO_FALSE; } void push_back(bool f) { if (m_first_false_pos == NO_FALSE && !f) { |