From 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Aug 2012 23:40:41 +0300 Subject: Add const to more classes. --- src/maplayer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/maplayer.h') diff --git a/src/maplayer.h b/src/maplayer.h index 03bb86409..19201ec43 100644 --- a/src/maplayer.h +++ b/src/maplayer.h @@ -257,13 +257,13 @@ class MapItem int getY() const { return mY; } - std::string &getComment() + const std::string &getComment() const { return mComment; } void setComment(std::string comment) { mComment = comment; } - std::string &getName() + const std::string &getName() const { return mName; } void setName(std::string name) -- cgit v1.2.3-70-g09d2