From c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 13 Jun 2017 17:57:32 +0300 Subject: Add missing const references to constructor parameters. --- src/resources/map/mapitem.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/resources/map/mapitem.h') 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) -- cgit v1.2.3-60-g2f50