summaryrefslogtreecommitdiff
path: root/src/wx/custom_scale_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/custom_scale_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/custom_scale_dialog.cc')
-rw-r--r--src/wx/custom_scale_dialog.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/custom_scale_dialog.cc b/src/wx/custom_scale_dialog.cc
index 9f825785e..a10233a31 100644
--- a/src/wx/custom_scale_dialog.cc
+++ b/src/wx/custom_scale_dialog.cc
@@ -44,9 +44,9 @@ CustomScaleDialog::CustomScaleDialog (wxWindow* parent, dcp::Size initial, dcp::
wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
_ratio = new wxTextCtrl (this, wxID_ANY, _(""), wxDefaultPosition, wxDefaultSize, 0, wxNumericPropertyValidator(wxNumericPropertyValidator::Float));
s->Add (_ratio, 1, wxRIGHT, 4);
- add_label_to_sizer (s, this, wxT(":1"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL);
+ add_label_to_sizer(s, this, char_to_wx(":1"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL);
add (s);
- _size_from_ratio = new wxStaticText (this, wxID_ANY, wxT(""));
+ _size_from_ratio = new wxStaticText(this, wxID_ANY, {});
add (_size_from_ratio, 1, wxALIGN_CENTER_VERTICAL);
_size = new wxRadioButton (this, wxID_ANY, _("Set size"));
@@ -54,11 +54,11 @@ CustomScaleDialog::CustomScaleDialog (wxWindow* parent, dcp::Size initial, dcp::
s = new wxBoxSizer (wxHORIZONTAL);
_width = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(DCPOMATIC_SPIN_CTRL_WIDTH, -1), wxSP_ARROW_KEYS, 1, film_container.width);
s->Add (_width, 1, wxRIGHT, 4);
- add_label_to_sizer (s, this, wxT("x"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL);
+ add_label_to_sizer(s, this, char_to_wx("x"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL);
_height = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(DCPOMATIC_SPIN_CTRL_WIDTH, -1), wxSP_ARROW_KEYS, 1, film_container.height);
s->Add (_height, 1, wxRIGHT, 4);
add (s);
- _ratio_from_size = new wxStaticText (this, wxID_ANY, wxT(""));
+ _ratio_from_size = new wxStaticText(this, wxID_ANY, {});
add (_ratio_from_size, 1, wxALIGN_CENTER_VERTICAL);
if (custom_ratio) {