summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-26 18:43:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-26 18:43:50 +0300
commit040fac18a01fbfe6cbff4ffa24e6543df148bafe (patch)
tree221f7872194a2d736aadb29acfabb5ba7e273ed1 /src/gui
parentf444f23a15f8470c03f84bf35af57b6596e066a4 (diff)
downloadplus-040fac18a01fbfe6cbff4ffa24e6543df148bafe.tar.gz
plus-040fac18a01fbfe6cbff4ffa24e6543df148bafe.tar.bz2
plus-040fac18a01fbfe6cbff4ffa24e6543df148bafe.tar.xz
plus-040fac18a01fbfe6cbff4ffa24e6543df148bafe.zip
Remove default parameters from passwordfield.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/passwordfield.h4
-rw-r--r--src/gui/windows/changepassworddialog.cpp6
-rw-r--r--src/gui/windows/registerdialog.cpp2
-rw-r--r--src/gui/windows/textdialog.cpp2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/widgets/passwordfield.h b/src/gui/widgets/passwordfield.h
index 93dded8d5..54d74493d 100644
--- a/src/gui/widgets/passwordfield.h
+++ b/src/gui/widgets/passwordfield.h
@@ -36,8 +36,8 @@ class PasswordField final : public TextField
/**
* Constructor, initializes the password field with the given string.
*/
- explicit PasswordField(const Widget2 *const widget,
- const std::string &text = "");
+ PasswordField(const Widget2 *const widget,
+ const std::string &text);
A_DELETE_COPY(PasswordField)
diff --git a/src/gui/windows/changepassworddialog.cpp b/src/gui/windows/changepassworddialog.cpp
index 92b023948..06ab8a9a0 100644
--- a/src/gui/windows/changepassworddialog.cpp
+++ b/src/gui/windows/changepassworddialog.cpp
@@ -48,9 +48,9 @@ ChangePasswordDialog::ChangePasswordDialog(LoginData &data) :
// TRANSLATORS: change password window name
Window(_("Change Password"), Modal_true, nullptr, "changepassword.xml"),
ActionListener(),
- mOldPassField(new PasswordField(this)),
- mFirstPassField(new PasswordField(this)),
- mSecondPassField(new PasswordField(this)),
+ mOldPassField(new PasswordField(this, std::string())),
+ mFirstPassField(new PasswordField(this, std::string())),
+ mSecondPassField(new PasswordField(this, std::string())),
// TRANSLATORS: change password dialog button
mChangePassButton(new Button(this, _("Change Password"),
"change_password", this)),
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp
index a033e9000..0f19e572e 100644
--- a/src/gui/windows/registerdialog.cpp
+++ b/src/gui/windows/registerdialog.cpp
@@ -56,7 +56,7 @@ RegisterDialog::RegisterDialog(LoginData &data) :
mLoginData(&data),
mUserField(new TextField(this, mLoginData->username)),
mPasswordField(new PasswordField(this, mLoginData->password)),
- mConfirmField(new PasswordField(this)),
+ mConfirmField(new PasswordField(this, std::string())),
mEmailField(nullptr),
// TRANSLATORS: register dialog. button.
mRegisterButton(new Button(this, _("Register"), "register", this)),
diff --git a/src/gui/windows/textdialog.cpp b/src/gui/windows/textdialog.cpp
index ee6e58a00..d73c056d0 100644
--- a/src/gui/windows/textdialog.cpp
+++ b/src/gui/windows/textdialog.cpp
@@ -62,7 +62,7 @@ TextDialog::TextDialog(const std::string &restrict title,
place(0, 0, textLabel, 4, 1);
if (isPassword)
{
- mPasswordField = new PasswordField(this);
+ mPasswordField = new PasswordField(this, std::string());
place(0, 1, mPasswordField, 4, 1);
}
else