summaryrefslogtreecommitdiff
path: root/src/gui/quitdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-27 21:18:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-27 21:44:17 +0300
commit7c79aa2b8e484319e3e511fa21db6d2448347024 (patch)
tree3c4fb4e72414dd8c0d93401a6bf2cc86b65a34a0 /src/gui/quitdialog.cpp
parentde476bb95242e10c833394ef007728072eabe60f (diff)
downloadmanaverse-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.gz
manaverse-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.bz2
manaverse-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.xz
manaverse-7c79aa2b8e484319e3e511fa21db6d2448347024.zip
Add const to more classes.
Diffstat (limited to 'src/gui/quitdialog.cpp')
-rw-r--r--src/gui/quitdialog.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp
index 64048dcc9..c84ddc122 100644
--- a/src/gui/quitdialog.cpp
+++ b/src/gui/quitdialog.cpp
@@ -46,7 +46,7 @@
#include "debug.h"
-QuitDialog::QuitDialog(QuitDialog** pointerToMe):
+QuitDialog::QuitDialog(QuitDialog **const pointerToMe):
Window(_("Quit"), true, nullptr, "quit.xml"),
mLogoutQuit(new RadioButton(_("Quit"), "quitdialog")),
mForceQuit(new RadioButton(_("Quit"), "quitdialog")),
@@ -113,7 +113,8 @@ QuitDialog::~QuitDialog()
mSwitchCharacter = nullptr;
}
-void QuitDialog::placeOption(ContainerPlacer &placer, gcn::RadioButton *option)
+void QuitDialog::placeOption(ContainerPlacer &placer,
+ gcn::RadioButton *const option)
{
placer(0, static_cast<int>(mOptions.size()), option, 3);
mOptions.push_back(option);
@@ -125,7 +126,7 @@ void QuitDialog::action(const gcn::ActionEvent &event)
{
if (viewport)
{
- Map *map = viewport->getCurrentMap();
+ Map *const map = viewport->getCurrentMap();
if (map)
map->saveExtraLayer();
}
@@ -159,7 +160,7 @@ void QuitDialog::action(const gcn::ActionEvent &event)
void QuitDialog::keyPressed(gcn::KeyEvent &keyEvent)
{
- int actionId = static_cast<KeyEvent*>(&keyEvent)->getActionId();
+ const int actionId = static_cast<KeyEvent*>(&keyEvent)->getActionId();
int dir = 0;
switch (actionId)