diff options
Diffstat (limited to 'Swiften/Elements/Replace.h')
-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: |