From c97de27f9c5364b6f126016c5e1f31a76d5ce565 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 10 Aug 2024 00:41:52 +0200 Subject: Remove use of wxT in favour of char_to_wx(). The wxWidgets docs advise against its use these days. --- src/wx/audio_plot.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wx/audio_plot.cc') diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index abd538037..ad478ddd0 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -182,7 +182,7 @@ AudioPlot::paint () wxDouble db_label_descent; wxDouble db_label_leading; Metrics metrics; - gc->GetTextExtent (wxT ("-80dB"), &metrics.db_label_width, &db_label_height, &db_label_descent, &db_label_leading); + gc->GetTextExtent(char_to_wx("-80dB"), &metrics.db_label_width, &db_label_height, &db_label_descent, &db_label_leading); metrics.db_label_width += 8; @@ -223,7 +223,7 @@ AudioPlot::paint () tc -= m * 60; int const s = tc; - auto str = wxString::Format (wxT ("%02d:%02d:%02d"), h, m, s); + auto str = wxString::Format(char_to_wx("%02d:%02d:%02d"), h, m, s); wxDouble str_width; wxDouble str_height; wxDouble str_descent; -- cgit v1.2.3