Merge pull request #94 from lioncash/default

CIOWin: Default the virtual destructor
This commit is contained in:
Phillip Stephens 2019-10-01 06:43:45 -07:00 committed by GitHub
commit 6bcdf98eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -16,12 +16,14 @@ class CIOWin {
public:
enum class EMessageReturn { Normal = 0, Exit = 1, RemoveIOWinAndExit = 2, RemoveIOWin = 3 };
virtual ~CIOWin() {}
CIOWin(std::string_view name) : x4_name(name) { m_nameHash = std::hash<std::string_view>()(name); }
virtual ~CIOWin() = default;
virtual EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&) = 0;
virtual bool GetIsContinueDraw() const { return true; }
virtual void Draw() const {}
virtual void PreDraw() const {}
std::string_view GetName() const { return x4_name; }
size_t GetNameHash() const { return m_nameHash; }
};