From 5527bdb269e355ca95aa91fe3907bfef0ef17ff4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 9 Aug 2024 02:02:20 +0200 Subject: Remove some implicit conversions between wxString and std::string. --- src/wx/name_format_editor.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wx/name_format_editor.cc') diff --git a/src/wx/name_format_editor.cc b/src/wx/name_format_editor.cc index 67e2517be..8f325efaf 100644 --- a/src/wx/name_format_editor.cc +++ b/src/wx/name_format_editor.cc @@ -30,9 +30,9 @@ using std::string; NameFormatEditor::NameFormatEditor (wxWindow* parent, dcp::NameFormat name, dcp::NameFormat::Map titles, dcp::NameFormat::Map examples, string suffix) : _panel (new wxPanel(parent)) - , _example (new StaticText(_panel, "")) + , _example(new StaticText(_panel, {})) , _sizer (new wxBoxSizer(wxVERTICAL)) - , _specification (new wxTextCtrl(_panel, wxID_ANY, "")) + , _specification(new wxTextCtrl(_panel, wxID_ANY, {})) , _name (name) , _examples (examples) , _suffix (suffix) @@ -83,7 +83,7 @@ NameFormatEditor::update_example () wxString wrapped; for (size_t i = 0; i < example.Length(); ++i) { if (i > 0 && (i % 40) == 0) { - wrapped += "\n"; + wrapped += char_to_wx("\n"); } wrapped += example[i]; } -- cgit v1.2.3