summaryrefslogtreecommitdiff
path: root/src/gui/editdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-06 20:57:24 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-06 22:58:35 +0300
commit4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f (patch)
treea776928bb1339cdd29eb2e54d50eb3fa6e3448d7 /src/gui/editdialog.cpp
parent22ed653d8b630c813333d5c73a4ca02dede2a5a5 (diff)
downloadplus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.gz
plus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.bz2
plus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.xz
plus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.zip
Improve constructors in some 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 f4a71b47e..cb96adca3 100644
--- a/src/gui/editdialog.cpp
+++ b/src/gui/editdialog.cpp
@@ -35,11 +35,11 @@
EditDialog::EditDialog(const std::string &title, const std::string &msg,
std::string eventOk, const int width,
Window *const parent, const bool modal):
- Window(title, modal, parent, "edit.xml")
+ Window(title, modal, parent, "edit.xml"),
+ ActionListener(),
+ mTextField(new TextField)
{
- mTextField = new TextField;
mTextField->setText(msg);
-
mEventOk = eventOk;
gcn::Button *const okButton = new Button(_("OK"), mEventOk, this);