From 66d3d5fca48269a778e81c3ed7747edc2e56c862 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 22 Dec 2017 19:52:20 +0300 Subject: Remove default parameters from textdialog. --- src/gui/windows/charselectdialog.cpp | 6 ++++-- src/gui/windows/skilldialog.cpp | 12 +++++++++--- src/gui/windows/textdialog.h | 4 ++-- 3 files changed, 15 insertions(+), 7 deletions(-) (limited to 'src/gui/windows') 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) -- cgit v1.2.3-70-g09d2