From 5802cf6109b720b8f7fa90e2c342b9dc202a6d9b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 1 Feb 2003 12:23:55 +0000 Subject: [PATCH] add operator== --- otk/strut.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/otk/strut.hh b/otk/strut.hh index 365055d4..71553da2 100644 --- a/otk/strut.hh +++ b/otk/strut.hh @@ -23,6 +23,11 @@ struct Strut { Strut(void): top(0), bottom(0), left(0), right(0) {} //! Constructs a new Strut with margins Strut(int l, int t, int r, int b): top(t), bottom(b), left(l), right(r) {} + + bool operator==(const Strut &o) const { + return top == o.top && bottom == o.bottom && left == o.left && + right == o.right; + } }; } -- 2.39.2