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/quitdialog.cpp | |
parent | de476bb95242e10c833394ef007728072eabe60f (diff) | |
download | plus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.gz plus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.bz2 plus-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.xz plus-7c79aa2b8e484319e3e511fa21db6d2448347024.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/quitdialog.cpp')
-rw-r--r-- | src/gui/quitdialog.cpp | 9 |
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) |