summaryrefslogtreecommitdiff
path: root/src/gui/confirmdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-27 01:27:11 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-27 01:27:11 +0300
commitde476bb95242e10c833394ef007728072eabe60f (patch)
tree033747127a7ea4e36de42cfc99fcee56ce915bbb /src/gui/confirmdialog.cpp
parenta33a8dc48761d7cb2b4c1c468e1e3b188bcbf709 (diff)
downloadmanaverse-de476bb95242e10c833394ef007728072eabe60f.tar.gz
manaverse-de476bb95242e10c833394ef007728072eabe60f.tar.bz2
manaverse-de476bb95242e10c833394ef007728072eabe60f.tar.xz
manaverse-de476bb95242e10c833394ef007728072eabe60f.zip
Add const to more classes.
Diffstat (limited to 'src/gui/confirmdialog.cpp')
-rw-r--r--src/gui/confirmdialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/confirmdialog.cpp b/src/gui/confirmdialog.cpp
index e4531ac3b..b0407572a 100644
--- a/src/gui/confirmdialog.cpp
+++ b/src/gui/confirmdialog.cpp
@@ -36,7 +36,8 @@
#include "debug.h"
ConfirmDialog::ConfirmDialog(const std::string &title, const std::string &msg,
- bool ignore, bool modal, Window *parent):
+ const bool ignore, const bool modal,
+ Window *const parent):
Window(title, modal, parent, "confirm.xml")
{
mTextBox = new TextBox;
@@ -44,8 +45,8 @@ ConfirmDialog::ConfirmDialog(const std::string &title, const std::string &msg,
mTextBox->setOpaque(false);
mTextBox->setTextWrapped(msg, 260);
- gcn::Button *yesButton = new Button(_("Yes"), "yes", this);
- gcn::Button *noButton = new Button(_("No"), "no", this);
+ gcn::Button *const yesButton = new Button(_("Yes"), "yes", this);
+ gcn::Button *const noButton = new Button(_("No"), "no", this);
gcn::Button *ignoreButton = nullptr;
if (ignore)