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-08-17 12:59:25 +0200
commitdc97c7cde9937a5c19a9412b5877e854974006a9 (patch)
treee55e1297f76e7dbd8845b95d40f546570672e482 /src/wx/report_problem_dialog.cc
parent1b01a029fa4fc5768c9d25c206157b8ab00f6edc (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);