summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Base')
-rw-r--r--Swiften/Base/String.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Base/String.h b/Swiften/Base/String.h
index 0da2e39..247a8a3 100644
--- a/Swiften/Base/String.h
+++ b/Swiften/Base/String.h
@@ -87,6 +87,11 @@ namespace Swift {
return *this;
}
+ String& operator=(const String& o) {
+ data_ = o.data_;
+ return *this;
+ }
+
friend bool operator>(const String& a, const String& b) {
return a.data_ > b.data_;
}