diff options
author | Vlad Voicu <vladvoic@gmail.com> | 2011-04-30 21:29:11 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-04-30 21:40:27 (GMT) |
commit | 5386ca8195d7471647431bda2f4ddf09b35c0825 (patch) | |
tree | b796ebd69047f07da2bac5bdea71a05c0e867640 /Swiften/Elements | |
parent | e0e279b85622275dfc4df0bfd5a50ec09694a9b7 (diff) | |
download | swift-contrib-5386ca8195d7471647431bda2f4ddf09b35c0825.zip swift-contrib-5386ca8195d7471647431bda2f4ddf09b35c0825.tar.bz2 |
Minor fixes for Replace
Switched from passing by value
License: This patch is BSD-licensed, see
http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to 'Swiften/Elements')
-rw-r--r-- | Swiften/Elements/Replace.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/Elements/Replace.h b/Swiften/Elements/Replace.h index 4c7d48e..44a91af 100644 --- a/Swiften/Elements/Replace.h +++ b/Swiften/Elements/Replace.h @@ -15,11 +15,11 @@ namespace Swift { class Replace : public Payload { public: typedef boost::shared_ptr<Replace> ref; - Replace(std::string id = "") : replaceID_(id) {}; - std::string getId() { + Replace(const std::string& id = std::string()) : replaceID_(id) {}; + std::string getID() { return replaceID_; } - void setId(std::string id) { + void setID(const std::string& id) { replaceID_ = id; } private: |