summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-03-27 13:14:09 -0400
committer AJR <ajrhacker@users.noreply.github.com>2022-03-27 13:14:14 -0400
commitbd8779ece46324083b84136a46b5d74be96fd9f1 (patch)
tree78e36e8c50838f51e9171eb5ac290861bfaf9be6 /src/osd
parentbffb0f6dc9066ca14a9229a8270fcbe24a7af532 (diff)
osdhelper.h: Make a couple of overloads const
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/modules/osdhelper.h4
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;