summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-05-08 08:01:56 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-05-08 08:24:22 (GMT)
commit5616ff49792238b451486f41b187744866d20056 (patch)
tree6c3a2f56d7aac99db4dbd7317768dfe1949a96e8 /Swiften/Base
parent203ca1c122db89c4a9f9f01bff2cadb3b9daca04 (diff)
downloadswift-contrib-5616ff49792238b451486f41b187744866d20056.zip
swift-contrib-5616ff49792238b451486f41b187744866d20056.tar.bz2
Added DIGEST-MD5 properties.
Diffstat (limited to 'Swiften/Base')
-rw-r--r--Swiften/Base/ByteArray.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Base/ByteArray.h b/Swiften/Base/ByteArray.h
index 4cedd9a..21cfb87 100644
--- a/Swiften/Base/ByteArray.h
+++ b/Swiften/Base/ByteArray.h
@@ -74,6 +74,11 @@ namespace Swift {
return *this;
}
+ ByteArray& operator+=(char c) {
+ data_.push_back(c);
+ return *this;
+ }
+
friend bool operator==(const ByteArray& a, const ByteArray& b) {
return a.data_ == b.data_;
}