summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-22 09:41:37 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-22 09:41:37 (GMT)
commit89c7990f5f2668594426693ca691eb0ca379d606 (patch)
tree140afa8142a40aa0c3e4fd357670d2dd37e652d4
parent0ddc0c762a7f8936bb8e12f0cf72a7e4a3fcc08f (diff)
downloadswift-contrib-89c7990f5f2668594426693ca691eb0ca379d606.zip
swift-contrib-89c7990f5f2668594426693ca691eb0ca379d606.tar.bz2
Added SafeString::clear().
-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 44b0316..bb6d6c7 100644
--- a/Swiften/Base/SafeString.h
+++ b/Swiften/Base/SafeString.h
@@ -59,6 +59,10 @@ namespace Swift {
return data.size();
}
+ void clear() {
+ data.clear();
+ }
+
bool operator==(const SafeString& o) const {
return data == o.data;
}