From 7c79aa2b8e484319e3e511fa21db6d2448347024 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 Aug 2012 21:18:46 +0300 Subject: Add const to more classes. --- src/gui/itempopup.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/itempopup.h') diff --git a/src/gui/itempopup.h b/src/gui/itempopup.h index e6cda2eae..dd2bae83d 100644 --- a/src/gui/itempopup.h +++ b/src/gui/itempopup.h @@ -60,10 +60,10 @@ class ItemPopup : public Popup /** * Sets the info to be displayed given a particular item. */ - void setItem(const ItemInfo &item, unsigned char color, - bool showImage = false, int id = -1); + void setItem(const ItemInfo &item, const unsigned char color, + const bool showImage = false, int id = -1); - void setItem(const Item *item, bool showImage = false); + void setItem(const Item *const item, const bool showImage = false); void mouseMoved(gcn::MouseEvent &mouseEvent); @@ -77,7 +77,7 @@ class ItemPopup : public Popup std::string mLastName; unsigned char mLastColor; - static gcn::Color getColor(ItemType type); + static gcn::Color getColor(const ItemType type); }; #endif // ITEMPOPUP_H -- cgit v1.2.3-70-g09d2