summaryrefslogtreecommitdiff
path: root/src/maplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-01 15:14:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-01 23:42:37 +0300
commitf9030497b6196ce2fadb6b6ada5d784be227d9a6 (patch)
treed11408b35d0860709d31e6520578cdd28391f151 /src/maplayer.h
parentf52ca7838789a6910840597a929ecf6e0be9e1de (diff)
downloadmv-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.gz
mv-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.bz2
mv-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.xz
mv-f9030497b6196ce2fadb6b6ada5d784be227d9a6.zip
Add missing const.
Diffstat (limited to 'src/maplayer.h')
-rw-r--r--src/maplayer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/maplayer.h b/src/maplayer.h
index 88db82214..ad2378010 100644
--- a/src/maplayer.h
+++ b/src/maplayer.h
@@ -283,13 +283,13 @@ class MapItem final
const std::string &getComment() const A_WARN_UNUSED
{ return mComment; }
- void setComment(std::string comment)
+ void setComment(const std::string &comment)
{ mComment = comment; }
const std::string &getName() const A_WARN_UNUSED
{ return mName; }
- void setName(std::string name)
+ void setName(const std::string &name)
{ mName = name; }
void draw(Graphics *const graphics, const int x, const int y,
@@ -313,7 +313,7 @@ class ObjectsLayer final
~ObjectsLayer();
- void addObject(std::string name, const int type,
+ void addObject(const std::string &name, const int type,
const unsigned x, const unsigned y,
unsigned dx, unsigned dy);