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/wx/name_format_editor.cc | |
| parent | a27964bd1794bb6a843873a0eaf3faa2c5cc317a (diff) | |
Remove some implicit conversions between wxString and std::string.
Diffstat (limited to 'src/wx/name_format_editor.cc')
| -rw-r--r-- | src/wx/name_format_editor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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]; } |
