diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-10 00:41:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-17 12:59:25 +0200 |
| commit | dc97c7cde9937a5c19a9412b5877e854974006a9 (patch) | |
| tree | e55e1297f76e7dbd8845b95d40f546570672e482 /src/tools/dcpomatic_server.cc | |
| parent | 1b01a029fa4fc5768c9d25c206157b8ab00f6edc (diff) | |
Remove use of wxT in favour of char_to_wx().
The wxWidgets docs advise against its use these days.
Diffstat (limited to 'src/tools/dcpomatic_server.cc')
| -rw-r--r-- | src/tools/dcpomatic_server.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/dcpomatic_server.cc b/src/tools/dcpomatic_server.cc index 3a3894dae..5747e89af 100644 --- a/src/tools/dcpomatic_server.cc +++ b/src/tools/dcpomatic_server.cc @@ -167,14 +167,14 @@ public: auto state_sizer = new wxFlexGridSizer (2, DCPOMATIC_SIZER_GAP, DCPOMATIC_SIZER_GAP); add_label_to_sizer (state_sizer, this, _("Frames per second"), true); - _fps = new StaticText (this, wxT("")); + _fps = new StaticText(this, {}); state_sizer->Add (_fps); auto log_sizer = new wxFlexGridSizer (1, DCPOMATIC_SIZER_GAP, DCPOMATIC_SIZER_GAP); log_sizer->AddGrowableCol (0, 1); wxClientDC dc (this); - wxSize size = dc.GetTextExtent (wxT ("This is the length of the file label it should be quite long")); + wxSize size = dc.GetTextExtent(char_to_wx("This is the length of the file label it should be quite long")); int const height = (size.GetHeight() + 2) * log_lines; SetSize (700, height + DCPOMATIC_SIZER_GAP * 2); |
