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.
This commit is contained in:
Lioncash 2019-10-21 01:49:19 -04:00
parent 78aa42032a
commit 12d6a5ce05
1 changed files with 1 additions and 1 deletions

View File

@ -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