summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-09-23 18:04:46 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-09-23 18:58:44 (GMT)
commitde50064af14eb31f027ea7fa59501c9b3754eafd (patch)
tree09ce1748c8ae20df7262524e66186f4e7f820db2 /Swiften/Elements
parentf9c432ca127d6e7d87b49d2fbf6aace34bea0e06 (diff)
downloadswift-de50064af14eb31f027ea7fa59501c9b3754eafd.zip
swift-de50064af14eb31f027ea7fa59501c9b3754eafd.tar.bz2
Cleanup of previous patch
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/MUCAdminPayload.h2
-rw-r--r--Swiften/Elements/MUCUserPayload.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Elements/MUCAdminPayload.h b/Swiften/Elements/MUCAdminPayload.h
index 7b3da20..dc09a24 100644
--- a/Swiften/Elements/MUCAdminPayload.h
+++ b/Swiften/Elements/MUCAdminPayload.h
@@ -25,7 +25,7 @@ namespace Swift {
MUCAdminPayload() {
}
- void addItem(MUCItem item) {items_.push_back(item);}
+ void addItem(const MUCItem& item) {items_.push_back(item);}
const std::vector<MUCItem>& getItems() const {return items_;}
diff --git a/Swiften/Elements/MUCUserPayload.h b/Swiften/Elements/MUCUserPayload.h
index de9f1e5..158258b 100644
--- a/Swiften/Elements/MUCUserPayload.h
+++ b/Swiften/Elements/MUCUserPayload.h
@@ -41,7 +41,7 @@ namespace Swift {
MUCUserPayload() {
}
- void addItem(MUCItem item) {items_.push_back(item);}
+ void addItem(const MUCItem& item) {items_.push_back(item);}
void addStatusCode(StatusCode code) {statusCodes_.push_back(code);}