summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_player.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-08-10 00:41:52 +0200
committerCarl Hetherington <cth@carlh.net>2024-08-17 12:59:25 +0200
commitdc97c7cde9937a5c19a9412b5877e854974006a9 (patch)
treee55e1297f76e7dbd8845b95d40f546570672e482 /src/tools/dcpomatic_player.cc
parent1b01a029fa4fc5768c9d25c206157b8ab00f6edc (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_player.cc')
-rw-r--r--src/tools/dcpomatic_player.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc
index 424c3917c..2b4ba41db 100644
--- a/src/tools/dcpomatic_player.cc
+++ b/src/tools/dcpomatic_player.cc
@@ -742,7 +742,7 @@ private:
void file_add_kdm ()
{
- FileDialog dialog(this, _("Select KDM"), wxT("XML files|*.xml|All files|*.*"), wxFD_MULTIPLE, "AddKDMPath");
+ FileDialog dialog(this, _("Select KDM"), char_to_wx("XML files|*.xml|All files|*.*"), wxFD_MULTIPLE, "AddKDMPath");
if (dialog.show()) {
DCPOMATIC_ASSERT (_film);
@@ -905,7 +905,7 @@ private:
_viewer.set_pad_black(_mode != Config::PLAYER_MODE_WINDOW);
if (_mode == Config::PLAYER_MODE_DUAL) {
- _dual_screen = new wxFrame (this, wxID_ANY, wxT(""));
+ _dual_screen = new wxFrame(this, wxID_ANY, {});
_dual_screen->SetBackgroundColour (wxColour(0, 0, 0));
_dual_screen->ShowFullScreen (true);
_viewer.panel()->Reparent(_dual_screen);
@@ -1342,7 +1342,7 @@ private:
void OnInitCmdLine (wxCmdLineParser& parser) override
{
parser.SetDesc (command_line_description);
- parser.SetSwitchChars (wxT ("-"));
+ parser.SetSwitchChars(char_to_wx("-"));
}
bool OnCmdLineParsed (wxCmdLineParser& parser) override