summaryrefslogtreecommitdiff
path: root/src/gui/windows/registerdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-24 14:55:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-25 20:06:07 +0300
commit9d521a19be347703bfdbb7802d0397a59c3edd7a (patch)
tree9a4e56edc84d5cfd8ebaea17fa19296c51e1e661 /src/gui/windows/registerdialog.cpp
parent841fe55e67ea467a8e2192dee5c169d282a35148 (diff)
downloadmanaverse-9d521a19be347703bfdbb7802d0397a59c3edd7a.tar.gz
manaverse-9d521a19be347703bfdbb7802d0397a59c3edd7a.tar.bz2
manaverse-9d521a19be347703bfdbb7802d0397a59c3edd7a.tar.xz
manaverse-9d521a19be347703bfdbb7802d0397a59c3edd7a.zip
Add missing checks in windows.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r--src/gui/windows/registerdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp
index 5d836f891..7a52a6129 100644
--- a/src/gui/windows/registerdialog.cpp
+++ b/src/gui/windows/registerdialog.cpp
@@ -46,12 +46,12 @@
#include "debug.h"
-RegisterDialog::RegisterDialog(LoginData *const data) :
+RegisterDialog::RegisterDialog(LoginData &data) :
// TRANSLATORS: register dialog name
Window(_("Register"), Modal_false, nullptr, "register.xml"),
ActionListener(),
KeyListener(),
- mLoginData(data),
+ mLoginData(&data),
mUserField(new TextField(this, mLoginData->username)),
mPasswordField(new PasswordField(this, mLoginData->password)),
mConfirmField(new PasswordField(this)),