diff options
author | 2022-03-27 13:14:09 -0400 | |
---|---|---|
committer | 2022-03-27 13:14:14 -0400 | |
commit | bd8779ece46324083b84136a46b5d74be96fd9f1 (patch) | |
tree | 78e36e8c50838f51e9171eb5ac290861bfaf9be6 | |
parent | bffb0f6dc9066ca14a9229a8270fcbe24a7af532 (diff) |
osdhelper.h: Make a couple of overloads const
-rw-r--r-- | src/osd/modules/osdhelper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/modules/osdhelper.h b/src/osd/modules/osdhelper.h index 093c392e249..85cbfc906c1 100644 --- a/src/osd/modules/osdhelper.h +++ b/src/osd/modules/osdhelper.h @@ -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; |