From bd8779ece46324083b84136a46b5d74be96fd9f1 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 27 Mar 2022 13:14:09 -0400 Subject: [PATCH] osdhelper.h: Make a couple of overloads const --- src/osd/modules/osdhelper.h | 4 ++-- 1 file 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;