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/kdm_timing_panel.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/kdm_timing_panel.cc')
| -rw-r--r-- | src/wx/kdm_timing_panel.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/kdm_timing_panel.cc b/src/wx/kdm_timing_panel.cc index c892c9d48..7b4a12046 100644 --- a/src/wx/kdm_timing_panel.cc +++ b/src/wx/kdm_timing_panel.cc @@ -45,7 +45,7 @@ KDMTimingPanel::KDMTimingPanel (wxWindow* parent) #ifdef __WXGTK3__ /* wxDatePickerCtrl is too small with the GTK3 backend so we need to make it bigger with some fudge factors */ wxClientDC dc (parent); - auto size = dc.GetTextExtent(wxT("99/99/9999")); + auto size = dc.GetTextExtent(char_to_wx("99/99/9999")); size.SetWidth (size.GetWidth() * 1.75); size.SetHeight (-1); #else @@ -113,7 +113,7 @@ KDMTimingPanel::KDMTimingPanel (wxWindow* parent) overall_sizer->Add (table, 0, wxTOP, DCPOMATIC_SIZER_GAP); - _warning = new StaticText (this, wxT("")); + _warning = new StaticText(this, {}); overall_sizer->Add (_warning, 0, wxTOP, DCPOMATIC_SIZER_GAP); wxFont font = _warning->GetFont(); font.SetStyle(wxFONTSTYLE_ITALIC); @@ -184,7 +184,7 @@ void KDMTimingPanel::changed () const { if (valid ()) { - _warning->SetLabel (wxT ("")); + _warning->SetLabel({}); } else { _warning->SetLabel (_("The 'until' time must be after the 'from' time.")); } |
