diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-10 00:41:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-03 17:02:24 +0200 |
| commit | c97de27f9c5364b6f126016c5e1f31a76d5ce565 (patch) | |
| tree | f29bd3c22e60f9abdfbe46f145279d9af7aa7256 /src/wx/rating_dialog.cc | |
| parent | 5ed17cd197aa743922da18e2a5753f746d38122e (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/rating_dialog.cc')
| -rw-r--r-- | src/wx/rating_dialog.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wx/rating_dialog.cc b/src/wx/rating_dialog.cc index 691a7d16d..083c927c7 100644 --- a/src/wx/rating_dialog.cc +++ b/src/wx/rating_dialog.cc @@ -126,9 +126,9 @@ StandardRatingDialogPage::StandardRatingDialogPage (wxNotebook* notebook) #endif _found_systems_view = new wxListView (this, wxID_ANY, wxDefaultPosition, wxSize(600, 400), wxLC_REPORT | wxLC_SINGLE_SEL | wxLC_NO_HEADER); - _found_systems_view->AppendColumn (wxT(""), wxLIST_FORMAT_LEFT, 150); - _found_systems_view->AppendColumn (wxT(""), wxLIST_FORMAT_LEFT, 50); - _found_systems_view->AppendColumn (wxT(""), wxLIST_FORMAT_LEFT, 400); + _found_systems_view->AppendColumn({}, wxLIST_FORMAT_LEFT, 150); + _found_systems_view->AppendColumn({}, wxLIST_FORMAT_LEFT, 50); + _found_systems_view->AppendColumn({}, wxLIST_FORMAT_LEFT, 400); _rating = new wxChoice (this, wxID_ANY); auto sizer = new wxFlexGridSizer (2, DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP); @@ -286,8 +286,8 @@ CustomRatingDialogPage::CustomRatingDialogPage (wxNotebook* notebook) { auto sizer = new wxFlexGridSizer (2, DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP); - _agency = new wxTextCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(400, -1)); - _rating = new wxTextCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(400, -1)); + _agency = new wxTextCtrl(this, wxID_ANY, {}, wxDefaultPosition, wxSize(400, -1)); + _rating = new wxTextCtrl(this, wxID_ANY, {}, wxDefaultPosition, wxSize(400, -1)); add_label_to_sizer (sizer, this, _("Agency"), true, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL); sizer->Add (_agency, 1, wxEXPAND); |
