diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/map/mapitem.cpp | 9 | ||||
-rw-r--r-- | src/resources/map/mapitem.h | 8 |
2 files changed, 12 insertions, 5 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(), diff --git a/src/resources/map/mapitem.h b/src/resources/map/mapitem.h index c8bcf1cda..cefbaea57 100644 --- a/src/resources/map/mapitem.h +++ b/src/resources/map/mapitem.h @@ -39,9 +39,13 @@ class MapItem final explicit MapItem(const int type); - MapItem(const int type, std::string comment); + MapItem(const int type, + const std::string &comment); - MapItem(const int type, std::string comment, const int x, const int y); + MapItem(const int type, + const std::string &comment, + const int x, + const int y); A_DELETE_COPY(MapItem) |