diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-22 19:52:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-22 19:52:20 +0300 |
commit | 66d3d5fca48269a778e81c3ed7747edc2e56c862 (patch) | |
tree | 2b8b1cce4881bc4ff90fb159f28e3f510657192d /src/gui/windows | |
parent | a54ff6d4104a9b382c1419c00cc83684e391a445 (diff) | |
download | manaverse-66d3d5fca48269a778e81c3ed7747edc2e56c862.tar.gz manaverse-66d3d5fca48269a778e81c3ed7747edc2e56c862.tar.bz2 manaverse-66d3d5fca48269a778e81c3ed7747edc2e56c862.tar.xz manaverse-66d3d5fca48269a778e81c3ed7747edc2e56c862.zip |
Remove default parameters from textdialog.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/charselectdialog.cpp | 6 | ||||
-rw-r--r-- | src/gui/windows/skilldialog.cpp | 12 | ||||
-rw-r--r-- | src/gui/windows/textdialog.h | 4 |
3 files changed, 15 insertions, 7 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index 5a0a02acb..fb759eb96 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -459,7 +459,8 @@ void CharSelectDialog::askPasswordForDeletion(const int index) _("Enter your email for deleting character"), // TRANSLATORS: email label. _("Enter email:"), - this, false); + this, + false); } else { @@ -468,7 +469,8 @@ void CharSelectDialog::askPasswordForDeletion(const int index) _("Enter password for deleting character"), // TRANSLATORS: email label. _("Enter password:"), - this, true); + this, + true); } mDeleteDialog->setActionEventId("try delete character"); mDeleteDialog->addActionListener(this); diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index 9f11605ef..114937b0b 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -1136,7 +1136,9 @@ void SkillDialog::useSkillTarget(const SkillInfo *const info, strprintf(_("Add text to skill %s"), data->name.c_str()), // TRANSLATORS: text skill dialog field - _("Text: ")); + _("Text: "), + nullptr, + false); dialog->setModal(Modal_true); textSkillListener.setDialog(dialog); dialog->setActionEventId("ok"); @@ -1200,7 +1202,9 @@ void SkillDialog::useSkillPosition(const SkillInfo *const info, strprintf(_("Add text to skill %s"), data->name.c_str()), // TRANSLATORS: text skill dialog field - _("Text: ")); + _("Text: "), + nullptr, + false); dialog->setModal(Modal_true); textSkillListener.setDialog(dialog); dialog->setActionEventId("ok"); @@ -1319,7 +1323,9 @@ void SkillDialog::useSkillDefault(const SkillInfo *const info, strprintf(_("Add text to skill %s"), data->name.c_str()), // TRANSLATORS: text skill dialog field - _("Text: ")); + _("Text: "), + nullptr, + false); dialog->setModal(Modal_true); textSkillListener.setDialog(dialog); dialog->setActionEventId("ok"); diff --git a/src/gui/windows/textdialog.h b/src/gui/windows/textdialog.h index a2901e04e..3a7311e32 100644 --- a/src/gui/windows/textdialog.h +++ b/src/gui/windows/textdialog.h @@ -47,8 +47,8 @@ class TextDialog final : public Window, */ TextDialog(const std::string &restrict title, const std::string &restrict msg, - Window *const parent = nullptr, - const bool isPassword = false); + Window *const parent, + const bool isPassword); A_DELETE_COPY(TextDialog) |