2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 16:24:55 +00:00

Console: Make State enum an enum class

Makes the enum strongly typed and impervious to implicit conversions.
This commit is contained in:
Lioncash
2019-10-21 01:53:03 -04:00
parent 12d6a5ce05
commit a0e6ec0de7
2 changed files with 3 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ public:
Fatal /**< Non-recoverable error message (Kept for compatibility with logvisor) */
};
enum State { Closed, Closing, Opened, Opening };
enum class State { Closed, Closing, Opened, Opening };
private:
CVarManager* m_cvarMgr = nullptr;