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/okdialog.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/okdialog.cpp')
-rw-r--r-- | src/gui/okdialog.cpp | 6 |
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(); |