summaryrefslogtreecommitdiff
path: root/src/identity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity.cpp')
-rw-r--r--src/identity.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/identity.cpp b/src/identity.cpp
index 374a872..a4c12f2 100644
--- a/src/identity.cpp
+++ b/src/identity.cpp
@@ -77,6 +77,16 @@ bool Identity::sameAs(const Identity & other) const
other.p->data[0]->data->keyIdentity;
}
+bool Identity::operator==(const Identity & other) const
+{
+ return p->data == other.p->data;
+}
+
+bool Identity::operator!=(const Identity & other) const
+{
+ return p->data != other.p->data;
+}
+
optional<Ref> Identity::ref() const
{
if (p->data.size() == 1)