mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-04 12:35:52 +00:00
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:
parent
78aa42032a
commit
12d6a5ce05
@ -108,6 +108,6 @@ public:
|
|||||||
void dumpLog();
|
void dumpLog();
|
||||||
static Console* instance();
|
static Console* instance();
|
||||||
static void RegisterLogger(Console* con);
|
static void RegisterLogger(Console* con);
|
||||||
bool isOpen() { return m_state == State::Opened; }
|
bool isOpen() const { return m_state == State::Opened; }
|
||||||
};
|
};
|
||||||
} // namespace hecl
|
} // namespace hecl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user