diff options
Diffstat (limited to 'src/gui/confirmdialog.cpp')
-rw-r--r-- | src/gui/confirmdialog.cpp | 7 |
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) |