osdhelper.h: Make a couple of overloads const

This commit is contained in:
AJR 2022-03-27 13:14:09 -04:00
parent bffb0f6dc9
commit bd8779ece4

View File

@ -20,8 +20,8 @@ public:
constexpr int width() const { return m_w; }
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) { 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) const { return (m_w == other.width()) && (m_h == other.height()); }
private:
int m_w;