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/content_advanced_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/content_advanced_dialog.cc')
| -rw-r--r-- | src/wx/content_advanced_dialog.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/content_advanced_dialog.cc b/src/wx/content_advanced_dialog.cc index f3f59eb52..d78adedea 100644 --- a/src/wx/content_advanced_dialog.cc +++ b/src/wx/content_advanced_dialog.cc @@ -64,7 +64,7 @@ ContentAdvancedDialog::ContentAdvancedDialog (wxWindow* parent, shared_ptr<Conte int r = 0; wxClientDC dc (this); - auto size = dc.GetTextExtent (wxT ("A quite long name")); + auto size = dc.GetTextExtent(char_to_wx("A quite long name")); #ifdef __WXGTK3__ size.SetWidth (size.GetWidth() + 64); #endif @@ -85,7 +85,7 @@ ContentAdvancedDialog::ContentAdvancedDialog (wxWindow* parent, shared_ptr<Conte } else { video_frame_rate_label = add_label_to_sizer (sizer, this, _("Video frame rate that content was prepared for"), true, wxGBPosition(r, 0)); } - _video_frame_rate = new wxTextCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize, 0, wxNumericPropertyValidator(wxNumericPropertyValidator::Float)); + _video_frame_rate = new wxTextCtrl(this, wxID_ANY, {}, wxDefaultPosition, wxDefaultSize, 0, wxNumericPropertyValidator(wxNumericPropertyValidator::Float)); sizer->Add (_video_frame_rate, wxGBPosition(r, 1)); _set_video_frame_rate = new Button (this, _("Set")); _set_video_frame_rate->Enable (false); @@ -197,7 +197,7 @@ ContentAdvancedDialog::filters_changed(vector<Filter> const& filters) optional<double> ContentAdvancedDialog::video_frame_rate() const { - if (_video_frame_rate->GetValue() == wxT("")) { + if (_video_frame_rate->GetValue().IsEmpty()) { return {}; } @@ -219,7 +219,7 @@ ContentAdvancedDialog::video_frame_rate_changed () /* If the user clicks "set" now, with no frame rate entered, it would unset the video frame rate in the selected content. This can't be allowed for some content types. */ - if (_video_frame_rate->GetValue() == wxT("") && (dynamic_pointer_cast<DCPContent>(_content) || dynamic_pointer_cast<FFmpegContent>(_content))) { + if (_video_frame_rate->GetValue().IsEmpty() && (dynamic_pointer_cast<DCPContent>(_content) || dynamic_pointer_cast<FFmpegContent>(_content))) { enable = false; } |
