From da0bbb2019fa44eee8686091212ad93b54341caf Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Tue, 27 Feb 2024 17:20:05 +0100 Subject: [PATCH] Mark GuestList::FilterArguments comparisons const --- src/openrct2-ui/windows/GuestList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2-ui/windows/GuestList.cpp b/src/openrct2-ui/windows/GuestList.cpp index c60d455790..1871352059 100644 --- a/src/openrct2-ui/windows/GuestList.cpp +++ b/src/openrct2-ui/windows/GuestList.cpp @@ -104,11 +104,11 @@ private: return firstStrId; } - bool operator==(const FilterArguments& other) + bool operator==(const FilterArguments& other) const { return std::memcmp(args, other.args, sizeof(args)) == 0; } - bool operator!=(const FilterArguments& other) + bool operator!=(const FilterArguments& other) const { return !(*this == other); }