From de476bb95242e10c833394ef007728072eabe60f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 Aug 2012 01:27:11 +0300 Subject: Add const to more classes. --- src/gui/editdialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/editdialog.cpp') 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(); -- cgit v1.2.3-60-g2f50