summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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);}