summaryrefslogtreecommitdiff
path: root/src/gui/editdialog.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/editdialog.cpp
parenta33a8dc48761d7cb2b4c1c468e1e3b188bcbf709 (diff)
downloadmanaplus-de476bb95242e10c833394ef007728072eabe60f.tar.gz
manaplus-de476bb95242e10c833394ef007728072eabe60f.tar.bz2
manaplus-de476bb95242e10c833394ef007728072eabe60f.tar.xz
manaplus-de476bb95242e10c833394ef007728072eabe60f.zip
Add const to more classes.
Diffstat (limited to 'src/gui/editdialog.cpp')
-rw-r--r--src/gui/editdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/editdialog.cpp b/src/gui/editdialog.cpp
index 96e6d21b2..f4a71b47e 100644
--- a/src/gui/editdialog.cpp
+++ b/src/gui/editdialog.cpp
@@ -33,8 +33,8 @@
#include "debug.h"
EditDialog::EditDialog(const std::string &title, const std::string &msg,
- std::string eventOk, int width,
- Window *parent, bool modal):
+ std::string eventOk, const int width,
+ Window *const parent, const bool modal):
Window(title, modal, parent, "edit.xml")
{
mTextField = new TextField;
@@ -42,7 +42,7 @@ EditDialog::EditDialog(const std::string &title, const std::string &msg,
mEventOk = eventOk;
- gcn::Button *okButton = new Button(_("OK"), mEventOk, this);
+ gcn::Button *const okButton = new Button(_("OK"), mEventOk, this);
const int numRows = 1;
const int fontHeight = getFont()->getHeight();