summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_disk.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/tools/dcpomatic_disk.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/tools/dcpomatic_disk.cc')
-rw-r--r--src/tools/dcpomatic_disk.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/dcpomatic_disk.cc b/src/tools/dcpomatic_disk.cc
index 235677461..076cf295b 100644
--- a/src/tools/dcpomatic_disk.cc
+++ b/src/tools/dcpomatic_disk.cc
@@ -81,7 +81,7 @@ class DirDialogWrapper : public wxDirDialog
{
public:
DirDialogWrapper (wxWindow* parent)
- : wxDirDialog (parent, _("Choose a DCP folder"), wxT(""), wxDD_DIR_MUST_EXIST)
+ : wxDirDialog (parent, _("Choose a DCP folder"), {}, wxDD_DIR_MUST_EXIST)
{
}
@@ -530,15 +530,15 @@ public:
void OnInitCmdLine (wxCmdLineParser& parser) override
{
parser.SetDesc (command_line_description);
- parser.SetSwitchChars (wxT ("-"));
+ parser.SetSwitchChars(char_to_wx("-"));
}
bool OnCmdLineParsed (wxCmdLineParser& parser) override
{
- _skip_alpha_check = parser.Found(wxT("sure"));
+ _skip_alpha_check = parser.Found(char_to_wx("sure"));
wxString dcp;
- if (parser.Found(wxT("dcp"), &dcp)) {
+ if (parser.Found(char_to_wx("dcp"), &dcp)) {
_dcp_to_write = wx_to_std (dcp);
}