summaryrefslogtreecommitdiff
path: root/src/gui/okdialog.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/okdialog.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/okdialog.cpp')
-rw-r--r--src/gui/okdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/okdialog.cpp b/src/gui/okdialog.cpp
index 30a6281eb..4b816794e 100644
--- a/src/gui/okdialog.cpp
+++ b/src/gui/okdialog.cpp
@@ -36,8 +36,8 @@
#include "debug.h"
OkDialog::OkDialog(const std::string &title, const std::string &msg,
- int soundEvent, bool modal, bool showCenter,
- Window *parent):
+ const int soundEvent, const bool modal,
+ const bool showCenter, Window *const parent):
Window(title, modal, parent, "ok.xml")
{
mTextBox = new TextBox;
@@ -45,7 +45,7 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg,
mTextBox->setOpaque(false);
mTextBox->setTextWrapped(msg, 260);
- gcn::Button *okButton = new Button(_("OK"), "ok", this);
+ gcn::Button *const okButton = new Button(_("OK"), "ok", this);
const int numRows = mTextBox->getNumberOfRows();
const int fontHeight = getFont()->getHeight();