mirror of
https://github.com/holub/mame
synced 2025-06-07 21:33:45 +03:00
osdhelper.h: Make a couple of overloads const
This commit is contained in:
parent
bffb0f6dc9
commit
bd8779ece4
@ -20,8 +20,8 @@ public:
|
|||||||
constexpr int width() const { return m_w; }
|
constexpr int width() const { return m_w; }
|
||||||
constexpr int height() const { return m_h; }
|
constexpr int height() const { return m_h; }
|
||||||
|
|
||||||
constexpr bool operator!=(const osd_dim &other) { return (m_w != other.width()) || (m_h != other.height()); }
|
constexpr bool operator!=(const osd_dim &other) const { return (m_w != other.width()) || (m_h != other.height()); }
|
||||||
constexpr bool operator==(const osd_dim &other) { return (m_w == other.width()) && (m_h == other.height()); }
|
constexpr bool operator==(const osd_dim &other) const { return (m_w == other.width()) && (m_h == other.height()); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_w;
|
int m_w;
|
||||||
|
Loading…
Reference in New Issue
Block a user