summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Base/SafeString.h')
-rw-r--r--Swiften/Base/SafeString.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Base/SafeString.h b/Swiften/Base/SafeString.h
index 0bd898d..44b0316 100644
--- a/Swiften/Base/SafeString.h
+++ b/Swiften/Base/SafeString.h
@@ -59,6 +59,10 @@ namespace Swift {
return data.size();
}
+ bool operator==(const SafeString& o) const {
+ return data == o.data;
+ }
+
private:
std::vector<char, SafeAllocator<char> > data;
};