diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-04-30 21:52:14 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-04-30 21:52:14 (GMT) |
commit | 4091acca56c189a350e195450272ec4471ba91cd (patch) | |
tree | 334aabdd827eeaa1ffa71ae492d59fab9fcaf95f | |
parent | 5386ca8195d7471647431bda2f4ddf09b35c0825 (diff) | |
download | swift-4091acca56c189a350e195450272ec4471ba91cd.zip swift-4091acca56c189a350e195450272ec4471ba91cd.tar.bz2 |
Make Replace::getID() const and return a const ref.
-rw-r--r-- | Swiften/Elements/Replace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Elements/Replace.h b/Swiften/Elements/Replace.h index 44a91af..230bce7 100644 --- a/Swiften/Elements/Replace.h +++ b/Swiften/Elements/Replace.h @@ -16,7 +16,7 @@ namespace Swift { public: typedef boost::shared_ptr<Replace> ref; Replace(const std::string& id = std::string()) : replaceID_(id) {}; - std::string getID() { + const std::string& getID() const { return replaceID_; } void setID(const std::string& id) { |