summaryrefslogtreecommitdiff
path: root/src/resources/map/mapitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/map/mapitem.cpp')
-rw-r--r--src/resources/map/mapitem.cpp9
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(),