diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-13 17:57:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-13 17:57:32 +0300 |
commit | c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf (patch) | |
tree | 37b78a9b847d938b5a34acf2f000fef3f31eef44 /src/resources/map/mapitem.cpp | |
parent | 1302ad311b666459c4de36420af09c2a1e7867d0 (diff) | |
download | plus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.tar.gz plus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.tar.bz2 plus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.tar.xz plus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.zip |
Add missing const references to constructor parameters.
Diffstat (limited to 'src/resources/map/mapitem.cpp')
-rw-r--r-- | src/resources/map/mapitem.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/resources/map/mapitem.cpp b/src/resources/map/mapitem.cpp index ce9e38fec..ff4b6b13e 100644 --- a/src/resources/map/mapitem.cpp +++ b/src/resources/map/mapitem.cpp @@ -57,7 +57,8 @@ MapItem::MapItem(const int type) : setType(type); } -MapItem::MapItem(const int type, std::string comment) : +MapItem::MapItem(const int type, + const std::string &comment) : mImage(nullptr), mComment(comment), mName(), @@ -68,8 +69,10 @@ MapItem::MapItem(const int type, std::string comment) : setType(type); } -MapItem::MapItem(const int type, std::string comment, - const int x, const int y) : +MapItem::MapItem(const int type, + const std::string &comment, + const int x, + const int y) : mImage(nullptr), mComment(comment), mName(), |