diff options
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Elements/DiscoInfo.h | 2 | ||||
-rw-r--r-- | Swiften/Elements/FormField.h | 2 | ||||
-rw-r--r-- | Swiften/Elements/JinglePayload.h | 2 | ||||
-rw-r--r-- | Swiften/Elements/MUCUserPayload.h | 4 | ||||
-rw-r--r-- | Swiften/Elements/SearchPayload.h | 2 | ||||
-rw-r--r-- | Swiften/Jingle/JingleSession.h | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/Swiften/Elements/DiscoInfo.h b/Swiften/Elements/DiscoInfo.h index cb6a446..ab09d05 100644 --- a/Swiften/Elements/DiscoInfo.h +++ b/Swiften/Elements/DiscoInfo.h @@ -87,7 +87,7 @@ namespace Swift { extensions_.push_back(form); } - const std::vector<Form::ref> getExtensions() const { + const std::vector<Form::ref>& getExtensions() const { return extensions_; } diff --git a/Swiften/Elements/FormField.h b/Swiften/Elements/FormField.h index 31e179d..e8fe3a0 100644 --- a/Swiften/Elements/FormField.h +++ b/Swiften/Elements/FormField.h @@ -48,7 +48,7 @@ namespace Swift { return options; } - const std::vector<std::string> getRawValues() const { + const std::vector<std::string>& getRawValues() const { return rawValues; } diff --git a/Swiften/Elements/JinglePayload.h b/Swiften/Elements/JinglePayload.h index be02543..5c766b8 100644 --- a/Swiften/Elements/JinglePayload.h +++ b/Swiften/Elements/JinglePayload.h @@ -102,7 +102,7 @@ namespace Swift { this->contents.push_back(content); } - const std::vector<JingleContentPayload::ref> getContents() const { + const std::vector<JingleContentPayload::ref>& getContents() const { return contents; } diff --git a/Swiften/Elements/MUCUserPayload.h b/Swiften/Elements/MUCUserPayload.h index b142a8d..0276964 100644 --- a/Swiften/Elements/MUCUserPayload.h +++ b/Swiften/Elements/MUCUserPayload.h @@ -52,9 +52,9 @@ namespace Swift { void addStatusCode(StatusCode code) {statusCodes_.push_back(code);} - const std::vector<Item> getItems() const {return items_;} + const std::vector<Item>& getItems() const {return items_;} - const std::vector<StatusCode> getStatusCodes() const {return statusCodes_;} + const std::vector<StatusCode>& getStatusCodes() const {return statusCodes_;} private: std::vector<Item> items_; diff --git a/Swiften/Elements/SearchPayload.h b/Swiften/Elements/SearchPayload.h index fe5b09a..202007b 100644 --- a/Swiften/Elements/SearchPayload.h +++ b/Swiften/Elements/SearchPayload.h @@ -74,7 +74,7 @@ namespace Swift { this->email = v; } - const std::vector<Item> getItems() const { + const std::vector<Item>& getItems() const { return items; } diff --git a/Swiften/Jingle/JingleSession.h b/Swiften/Jingle/JingleSession.h index fa7da7e..b8117bb 100644 --- a/Swiften/Jingle/JingleSession.h +++ b/Swiften/Jingle/JingleSession.h @@ -27,7 +27,7 @@ namespace Swift { return initiator; } - std::string getID() const { + const std::string& getID() const { return id; } |