From ab596ef3f4215f792feaa9ca1dfe5acb74c67328 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 Aug 2012 02:48:32 +0300 Subject: Add const to some classes. --- src/flooritem.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/flooritem.h') diff --git a/src/flooritem.h b/src/flooritem.h index 1d1947379..42a543aea 100644 --- a/src/flooritem.h +++ b/src/flooritem.h @@ -46,8 +46,9 @@ class FloorItem : public ActorSprite * @param subX the x pixel relative position * @param subY the y pixel relative position */ - FloorItem(int id, int itemId, int x, int y, Map *map, int amount, - unsigned char color, int subX, int subY); + FloorItem(const int id, const int itemId, const int x, const int y, + Map *const map, const int amount, const unsigned char color, + int subX, int subY); Type getType() const { return FLOOR_ITEM; } @@ -86,7 +87,7 @@ class FloorItem : public ActorSprite bool getShowMsg() const { return mShowMsg; } - void setShowMsg(bool n) + void setShowMsg(const bool n) { mShowMsg = n; } void disableHightlight() -- cgit v1.2.3-70-g09d2