summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-04-30 21:52:14 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-04-30 21:52:14 (GMT)
commit4091acca56c189a350e195450272ec4471ba91cd (patch)
tree334aabdd827eeaa1ffa71ae492d59fab9fcaf95f /Swiften
parent5386ca8195d7471647431bda2f4ddf09b35c0825 (diff)
downloadswift-contrib-4091acca56c189a350e195450272ec4471ba91cd.zip
swift-contrib-4091acca56c189a350e195450272ec4471ba91cd.tar.bz2
Make Replace::getID() const and return a const ref.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Elements/Replace.h2
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) {