mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 05:07:43 +00:00
string_view refactor
This commit is contained in:
@@ -24,12 +24,12 @@ public:
|
||||
RemoveIOWin = 3
|
||||
};
|
||||
virtual ~CIOWin() {}
|
||||
CIOWin(const char* name) : x4_name(name) { m_nameHash = std::hash<std::string>()(x4_name); }
|
||||
CIOWin(std::string_view name) : x4_name(name) { m_nameHash = std::hash<std::string_view>()(name); }
|
||||
virtual EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&)=0;
|
||||
virtual bool GetIsContinueDraw() const { return true; }
|
||||
virtual void Draw() const {}
|
||||
virtual void PreDraw() const {}
|
||||
const std::string& GetName() const { return x4_name; }
|
||||
std::string_view GetName() const { return x4_name; }
|
||||
size_t GetNameHash() const { return m_nameHash; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user