summaryrefslogtreecommitdiff
path: root/src/wx/dcp_panel.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/dcp_panel.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/dcp_panel.cc')
-rw-r--r--src/wx/dcp_panel.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc
index 0cff1e62b..83f37c9de 100644
--- a/src/wx/dcp_panel.cc
+++ b/src/wx/dcp_panel.cc
@@ -94,7 +94,7 @@ DCPPanel::DCPPanel(wxNotebook* n, shared_ptr<Film> film, FilmViewer& viewer)
http://trac.wxwidgets.org/ticket/12539
*/
_dcp_name = new StaticText (
- _panel, wxT (""), wxDefaultPosition, wxDefaultSize,
+ _panel, {}, wxDefaultPosition, wxDefaultSize,
wxALIGN_CENTRE_HORIZONTAL | wxST_NO_AUTORESIZE | wxST_ELLIPSIZE_MIDDLE
);
@@ -104,7 +104,7 @@ DCPPanel::DCPPanel(wxNotebook* n, shared_ptr<Film> film, FilmViewer& viewer)
_encrypted = new CheckBox (_panel, _("Encrypted"));
wxClientDC dc (_panel);
- auto size = dc.GetTextExtent (wxT ("GGGGGGGG..."));
+ auto size = dc.GetTextExtent(char_to_wx("GGGGGGGG..."));
size.SetHeight (-1);
_standard_label = create_label (_panel, _("Standard"), true);
@@ -482,7 +482,7 @@ DCPPanel::film_changed(FilmProperty p)
{
auto al = _film->audio_language();
checked_set (_enable_audio_language, static_cast<bool>(al));
- checked_set (_audio_language, al ? std_to_wx(al->to_string()) : wxT(""));
+ checked_set (_audio_language, al ? std_to_wx(al->to_string()) : wxString{});
setup_dcp_name ();
setup_sensitivity ();
_audio_panel_sizer->Layout();
@@ -608,7 +608,7 @@ DCPPanel::set_film (shared_ptr<Film> film)
if (!_film) {
/* Really should all the film_changed below but this might be enough */
- checked_set (_dcp_name, wxT(""));
+ checked_set(_dcp_name, wxString{});
set_general_sensitivity (false);
return;
}
@@ -802,7 +802,7 @@ DCPPanel::make_video_panel ()
_container_label = create_label (panel, _("Container"), true);
_container = new Choice(panel);
- _container_size = new StaticText (panel, wxT (""));
+ _container_size = new StaticText(panel, {});
_resolution_label = create_label (panel, _("Resolution"), true);
_resolution = new Choice(panel);
@@ -934,7 +934,7 @@ DCPPanel::make_audio_panel ()
add_audio_processors ();
_enable_audio_language = new CheckBox(panel, _("Language"));
- _audio_language = new wxStaticText(panel, wxID_ANY, wxT(""));
+ _audio_language = new wxStaticText(panel, wxID_ANY, {});
_edit_audio_language = new Button(panel, _("Edit..."));
_show_audio = new Button (panel, _("Show graph of audio levels..."));