From 12d6a5ce0598ee7832c4b2a235564c7c9875fd91 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 21 Oct 2019 01:49:19 -0400 Subject: [PATCH] Console: Make isOpen() a const member function This member function doesn't modify internal member state, so it can be turned into a const qualified member function. --- hecl/include/hecl/Console.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hecl/include/hecl/Console.hpp b/hecl/include/hecl/Console.hpp index d1ab47ccb..f0a0215ea 100644 --- a/hecl/include/hecl/Console.hpp +++ b/hecl/include/hecl/Console.hpp @@ -108,6 +108,6 @@ public: void dumpLog(); static Console* instance(); static void RegisterLogger(Console* con); - bool isOpen() { return m_state == State::Opened; } + bool isOpen() const { return m_state == State::Opened; } }; } // namespace hecl