summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic.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.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.cc')
-rw-r--r--src/tools/dcpomatic.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index a2e44280c..e80bfc333 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -777,7 +777,7 @@ private:
void tools_export_preferences ()
{
FileDialog dialog(
- this, _("Specify ZIP file"), wxT("ZIP files (*.zip)|*.zip"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT, "Preferences", string("dcpomatic_config.zip")
+ this, _("Specify ZIP file"), char_to_wx("ZIP files (*.zip)|*.zip"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT, "Preferences", string("dcpomatic_config.zip")
);
if (dialog.ShowModal() == wxID_OK) {
@@ -797,7 +797,7 @@ private:
void tools_import_preferences()
{
- FileDialog dialog(this, _("Specify ZIP file"), wxT("ZIP files (*.zip)|*.zip"), wxFD_OPEN, "Preferences");
+ FileDialog dialog(this, _("Specify ZIP file"), char_to_wx("ZIP files (*.zip)|*.zip"), wxFD_OPEN, "Preferences");
if (!dialog.show()) {
return;
@@ -1774,18 +1774,18 @@ private:
void OnInitCmdLine (wxCmdLineParser& parser) override
{
parser.SetDesc (command_line_description);
- parser.SetSwitchChars (wxT ("-"));
+ parser.SetSwitchChars(char_to_wx("-"));
}
bool OnCmdLineParsed (wxCmdLineParser& parser) override
{
- if (parser.Found (wxT("version"))) {
+ if (parser.Found(char_to_wx("version"))) {
cout << "dcpomatic version " << dcpomatic_version << " " << dcpomatic_git_commit << "\n";
exit (EXIT_SUCCESS);
}
if (parser.GetParamCount() > 0) {
- if (parser.Found (wxT ("new"))) {
+ if (parser.Found(char_to_wx("new"))) {
_film_to_create = wx_to_std (parser.GetParam (0));
} else {
_film_to_load = wx_to_std (parser.GetParam (0));
@@ -1793,17 +1793,17 @@ private:
}
wxString content;
- if (parser.Found (wxT ("content"), &content)) {
+ if (parser.Found(char_to_wx("content"), &content)) {
_content_to_add = wx_to_std (content);
}
wxString dcp;
- if (parser.Found (wxT ("dcp"), &dcp)) {
+ if (parser.Found(char_to_wx("dcp"), &dcp)) {
_dcp_to_add = wx_to_std (dcp);
}
wxString config;
- if (parser.Found (wxT("config"), &config)) {
+ if (parser.Found(char_to_wx("config"), &config)) {
State::override_path = wx_to_std (config);
}