From 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Aug 2012 23:40:41 +0300 Subject: Add const to more classes. --- src/gui/statuspopup.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/gui/statuspopup.h') diff --git a/src/gui/statuspopup.h b/src/gui/statuspopup.h index 0921fbb7f..181bc9401 100644 --- a/src/gui/statuspopup.h +++ b/src/gui/statuspopup.h @@ -58,7 +58,7 @@ class StatusPopup : public Popup /** * Sets the location to display the item popup. */ - void view(int x, int y); + void view(const int x, const int y); // void mouseMoved(gcn::MouseEvent &mouseEvent); @@ -67,10 +67,11 @@ class StatusPopup : public Popup private: void updateLabels(); - void setLabelText(gcn::Label *label, const char *text, int key); + void setLabelText(gcn::Label *const label, const char *const text, + const int key) const; - void setLabelText2(gcn::Label *label, std::string text, - Input::KeyAction key); + void setLabelText2(gcn::Label *const label, const std::string &text, + const Input::KeyAction key) const; gcn::Label *mMoveType; gcn::Label *mCrazyMoveType; -- cgit v1.2.3-70-g09d2