From f90ff8303b4f2d0c39fe9e3dd35c5b0258491156 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Tue, 31 Jan 2023 00:03:23 +0000 Subject: Unbreak build with libc++ (#1457) --- src/protocols/ToplevelExport.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protocols') diff --git a/src/protocols/ToplevelExport.hpp b/src/protocols/ToplevelExport.hpp index e1c526db..d3bbc362 100644 --- a/src/protocols/ToplevelExport.hpp +++ b/src/protocols/ToplevelExport.hpp @@ -14,7 +14,7 @@ struct SToplevelClient { int ref = 0; wl_resource* resource = nullptr; - bool operator==(const SToplevelClient& other) { + bool operator==(const SToplevelClient& other) const { return resource == other.resource; } }; @@ -36,7 +36,7 @@ struct SToplevelFrame { CWindow* pWindow = nullptr; - bool operator==(const SToplevelFrame& other) { + bool operator==(const SToplevelFrame& other) const { return resource == other.resource && client == other.client; } }; -- cgit v1.2.3