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/layout/DwindleLayout.hpp | 2 +- src/layout/MasterLayout.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/layout') diff --git a/src/layout/DwindleLayout.hpp b/src/layout/DwindleLayout.hpp index e6a98915..3c34287c 100644 --- a/src/layout/DwindleLayout.hpp +++ b/src/layout/DwindleLayout.hpp @@ -33,7 +33,7 @@ struct SDwindleNodeData { bool valid = true; // For list lookup - bool operator==(const SDwindleNodeData& rhs) { + bool operator==(const SDwindleNodeData& rhs) const { return pWindow == rhs.pWindow && workspaceID == rhs.workspaceID && position == rhs.position && size == rhs.size && pParent == rhs.pParent && children[0] == rhs.children[0] && children[1] == rhs.children[1]; } diff --git a/src/layout/MasterLayout.hpp b/src/layout/MasterLayout.hpp index 746c500e..95948ead 100644 --- a/src/layout/MasterLayout.hpp +++ b/src/layout/MasterLayout.hpp @@ -30,7 +30,7 @@ struct SMasterNodeData { int workspaceID = -1; - bool operator==(const SMasterNodeData& rhs) { + bool operator==(const SMasterNodeData& rhs) const { return pWindow == rhs.pWindow; } }; @@ -39,7 +39,7 @@ struct SMasterWorkspaceData { int workspaceID = -1; eOrientation orientation = ORIENTATION_LEFT; - bool operator==(const SMasterWorkspaceData& rhs) { + bool operator==(const SMasterWorkspaceData& rhs) const { return workspaceID == rhs.workspaceID; } }; -- cgit v1.2.3