summaryrefslogtreecommitdiff
path: root/src/wx/audio_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/audio_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/audio_panel.cc')
-rw-r--r--src/wx/audio_panel.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc
index 34923fb02..1d6cba315 100644
--- a/src/wx/audio_panel.cc
+++ b/src/wx/audio_panel.cc
@@ -72,7 +72,7 @@ void
AudioPanel::create ()
{
_show = new Button (this, _("Show graph of audio levels..."));
- _peak = new StaticText (this, wxT (""));
+ _peak = new StaticText(this, {});
_gain_label = create_label (this, _("Gain"), true);
_gain = new ContentSpinCtrlDouble<AudioContent> (
@@ -111,7 +111,7 @@ AudioPanel::create ()
_mapping = new AudioMappingView (this, _("Content"), _("content"), _("DCP"), _("DCP"));
_sizer->Add (_mapping, 1, wxEXPAND | wxALL, 6);
- _description = new StaticText (this, wxT(" \n"), wxDefaultPosition, wxDefaultSize);
+ _description = new StaticText(this, char_to_wx(" \n"), wxDefaultPosition, wxDefaultSize);
_sizer->Add (_description, 0, wxALL, 12);
auto font = _description->GetFont();
font.SetStyle(wxFONTSTYLE_ITALIC);
@@ -316,7 +316,7 @@ AudioPanel::setup_description ()
{
auto ac = _parent->selected_audio ();
if (ac.size () != 1) {
- checked_set (_description, wxT (""));
+ checked_set(_description, wxString{});
return;
}
@@ -434,7 +434,7 @@ AudioPanel::setup_peak ()
auto peak_dB = peak ();
if (sel.size() != 1) {
- _peak->SetLabel (wxT(""));
+ _peak->SetLabel({});
} else {
peak_dB = peak ();
if (peak_dB) {