summaryrefslogtreecommitdiff
path: root/src/wx/report_problem_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-08-10 00:41:52 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-03 17:02:24 +0200
commitc97de27f9c5364b6f126016c5e1f31a76d5ce565 (patch)
treef29bd3c22e60f9abdfbe46f145279d9af7aa7256 /src/wx/report_problem_dialog.cc
parent5ed17cd197aa743922da18e2a5753f746d38122e (diff)
Remove use of wxT in favour of char_to_wx().
The wxWidgets docs advise against its use these days.
Diffstat (limited to 'src/wx/report_problem_dialog.cc')
-rw-r--r--src/wx/report_problem_dialog.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/report_problem_dialog.cc b/src/wx/report_problem_dialog.cc
index 701f9dc21..226a44d0a 100644
--- a/src/wx/report_problem_dialog.cc
+++ b/src/wx/report_problem_dialog.cc
@@ -61,12 +61,12 @@ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr<Film> fil
int flags = wxALIGN_TOP | wxLEFT | wxRIGHT;
#ifdef __WXOSX__
flags |= wxALIGN_RIGHT;
- t += wxT (":");
+ t += char_to_wx(":");
#endif
auto m = new StaticText (this, t);
_table->Add (m, 1, flags, 6);
- _summary = new wxTextCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(320, 240), wxTE_MULTILINE);
+ _summary = new wxTextCtrl(this, wxID_ANY, {}, wxDefaultPosition, wxSize(320, 240), wxTE_MULTILINE);
_table->Add (_summary, 1, wxEXPAND | wxALIGN_TOP);
_send_logs = new CheckBox (this, _("Send logs"));
@@ -75,7 +75,7 @@ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr<Film> fil
_table->AddSpacer (0);
add_label_to_sizer (_table, this, _("Your email address"), true, 0, wxALIGN_CENTRE_VERTICAL);
- _email = new wxTextCtrl (this, wxID_ANY, wxT (""));
+ _email = new wxTextCtrl(this, wxID_ANY, {});
_email->SetValue (std_to_wx (Config::instance()->kdm_from ()));
_table->Add (_email, 1, wxEXPAND);
@@ -97,7 +97,7 @@ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr<Film> fil
}
}
- auto n = new StaticText (this, wxT(""));
+ auto n = new StaticText(this, {});
n->SetLabelMarkup (out);
_table->AddSpacer (0);
_table->Add (n, 1, wxEXPAND);