diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-09 02:02:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-03 17:02:24 +0200 |
| commit | 5527bdb269e355ca95aa91fe3907bfef0ef17ff4 (patch) | |
| tree | 5dd2fc2e81cf193c9712606f43f1e13e1a6e46bf /src/tools/dcpomatic_combiner.cc | |
| parent | a27964bd1794bb6a843873a0eaf3faa2c5cc317a (diff) | |
Remove some implicit conversions between wxString and std::string.
Diffstat (limited to 'src/tools/dcpomatic_combiner.cc')
| -rw-r--r-- | src/tools/dcpomatic_combiner.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/dcpomatic_combiner.cc b/src/tools/dcpomatic_combiner.cc index 26ca0022b..49ada2580 100644 --- a/src/tools/dcpomatic_combiner.cc +++ b/src/tools/dcpomatic_combiner.cc @@ -171,7 +171,7 @@ private: } else if (is_regular_file(output)) { error_dialog ( this, - String::compose (wx_to_std(_("%1 already exists as a file, so you cannot use it for a DCP.")), output.string()) + wxString::Format(_("%s already exists as a file, so you cannot use it for a DCP."), std_to_wx(output.string())) ); return; } @@ -192,7 +192,7 @@ private: } else { auto m = std_to_wx(last->error_summary()); if (!last->error_details().empty()) { - m += wxString::Format(" (%s)", std_to_wx(last->error_details())); + m += wxString::Format(char_to_wx(" (%s)"), std_to_wx(last->error_details())); } error_dialog (this, m); } @@ -313,7 +313,7 @@ public: ) ); } catch (...) { - error_dialog(nullptr, _("An unknown exception occurred.") + " " + wx::report_problem()); + error_dialog(nullptr, wxString::Format(_("An unknown exception occurred. %s"), wx::report_problem())); } } |
