summaryrefslogtreecommitdiff
path: root/src/maplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/maplayer.h')
-rw-r--r--src/maplayer.h4
1 files changed, 2 insertions, 2 deletions
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)