diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-27 21:18:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-27 21:44:17 +0300 |
commit | 7c79aa2b8e484319e3e511fa21db6d2448347024 (patch) | |
tree | 3c4fb4e72414dd8c0d93401a6bf2cc86b65a34a0 /src/gui/ministatuswindow.h | |
parent | de476bb95242e10c833394ef007728072eabe60f (diff) | |
download | mv-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.gz mv-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.bz2 mv-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.xz mv-7c79aa2b8e484319e3e511fa21db6d2448347024.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/ministatuswindow.h')
-rw-r--r-- | src/gui/ministatuswindow.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/ministatuswindow.h b/src/gui/ministatuswindow.h index dfc945689..d67cf8b03 100644 --- a/src/gui/ministatuswindow.h +++ b/src/gui/ministatuswindow.h @@ -53,11 +53,11 @@ class MiniStatusWindow : public Popup, /** * Sets one of the icons. */ - void setIcon(int index, AnimatedSprite *sprite); + void setIcon(const int index, AnimatedSprite *const sprite); - void eraseIcon(int index); + void eraseIcon(const int index); - void drawIcons(Graphics *graphics); + void drawIcons(Graphics *const graphics); void processEvent(Channels channel, const DepricatedEvent &event); @@ -73,13 +73,13 @@ class MiniStatusWindow : public Popup, void mouseExited(gcn::MouseEvent &event); - void showBar(std::string name, bool visible); + void showBar(const std::string &name, const bool visible); void updateBars(); void updateArrows(); - void slotsChanged(Inventory* inventory); + void slotsChanged(Inventory *const inventory); std::vector <ProgressBar*> &getBars() { return mBars; } @@ -87,9 +87,9 @@ class MiniStatusWindow : public Popup, private: bool isInBar(ProgressBar *bar, int x, int y) const; - ProgressBar *createBar(float progress, int width, int height, - int color, std::string name, - std::string description); + ProgressBar *createBar(const float progress, const int width, + const int height, const int color, + std::string name, std::string description); void loadBars(); |