summaryrefslogtreecommitdiff
path: root/src/gui/statuspopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
commit1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch)
tree68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/gui/statuspopup.cpp
parent41044107cc0a17125ebd806c9934b6eb636dafe6 (diff)
downloadmv-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz
mv-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2
mv-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz
mv-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip
Add const to more classes.
Diffstat (limited to 'src/gui/statuspopup.cpp')
-rw-r--r--src/gui/statuspopup.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/statuspopup.cpp b/src/gui/statuspopup.cpp
index 36917b250..a593f2fe3 100644
--- a/src/gui/statuspopup.cpp
+++ b/src/gui/statuspopup.cpp
@@ -165,7 +165,7 @@ void StatusPopup::update()
+ mDisableGameModifiers->getHeight() + 2 * getPadding());
}
-void StatusPopup::view(int x, int y)
+void StatusPopup::view(const int x, const int y)
{
const int distance = 20;
@@ -184,14 +184,16 @@ void StatusPopup::view(int x, int y)
requestMoveToTop();
}
-void StatusPopup::setLabelText(gcn::Label *label, const char *text, int key)
+void StatusPopup::setLabelText(gcn::Label *const label, const char *const text,
+ int const key) const
{
label->setCaption(strprintf("%s %s", text,
inputManager.getKeyValueString(key).c_str()));
}
-void StatusPopup::setLabelText2(gcn::Label *label, std::string text,
- Input::KeyAction key)
+void StatusPopup::setLabelText2(gcn::Label *const label,
+ const std::string &text,
+ const Input::KeyAction key) const
{
label->setCaption(strprintf("%s %s", text.c_str(),
inputManager.getKeyValueString(static_cast<int>(key)).c_str()));