summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Base/ByteArray.h')
-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_;
}