diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-10 00:41:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-03 17:02:24 +0200 |
| commit | c97de27f9c5364b6f126016c5e1f31a76d5ce565 (patch) | |
| tree | f29bd3c22e60f9abdfbe46f145279d9af7aa7256 /src/wx/make_chain_dialog.cc | |
| parent | 5ed17cd197aa743922da18e2a5753f746d38122e (diff) | |
Remove use of wxT in favour of char_to_wx().
The wxWidgets docs advise against its use these days.
Diffstat (limited to 'src/wx/make_chain_dialog.cc')
| -rw-r--r-- | src/wx/make_chain_dialog.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/make_chain_dialog.cc b/src/wx/make_chain_dialog.cc index fedff470b..a7888fdb5 100644 --- a/src/wx/make_chain_dialog.cc +++ b/src/wx/make_chain_dialog.cc @@ -67,7 +67,7 @@ MakeChainDialog::MakeChainDialog ( } wxTextValidator validator (wxFILTER_EXCLUDE_CHAR_LIST); - validator.SetCharExcludes (wxT ("/")); + validator.SetCharExcludes(char_to_wx("/")); if (boost::algorithm::starts_with (root_common_name, ".")) { root_common_name = root_common_name.substr (1); @@ -90,7 +90,7 @@ MakeChainDialog::MakeChainDialog ( { auto s = new wxBoxSizer (wxHORIZONTAL); - s->Add (new StaticText (this, wxT (".")), 0, wxALIGN_CENTER_VERTICAL); + s->Add (new StaticText (this, char_to_wx(".")), 0, wxALIGN_CENTER_VERTICAL); s->Add (_root_common_name = new wxTextCtrl ( this, wxID_ANY, std_to_wx (root_common_name), wxDefaultPosition, wxDefaultSize, 0, validator), 1, wxALIGN_CENTER_VERTICAL ); @@ -101,7 +101,7 @@ MakeChainDialog::MakeChainDialog ( { auto s = new wxBoxSizer (wxHORIZONTAL); - s->Add (new StaticText (this, wxT (".")), 0, wxALIGN_CENTER_VERTICAL); + s->Add(new StaticText(this, char_to_wx(".")), 0, wxALIGN_CENTER_VERTICAL); s->Add (_intermediate_common_name = new wxTextCtrl ( this, wxID_ANY, std_to_wx (intermediate_common_name), wxDefaultPosition, wxDefaultSize, 0, validator), 1, wxALIGN_CENTER_VERTICAL ); @@ -112,7 +112,7 @@ MakeChainDialog::MakeChainDialog ( { auto s = new wxBoxSizer (wxHORIZONTAL); - s->Add (new StaticText (this, wxT ("CS.")), 0, wxALIGN_CENTER_VERTICAL); + s->Add(new StaticText(this, char_to_wx("CS.")), 0, wxALIGN_CENTER_VERTICAL); s->Add (_leaf_common_name = new wxTextCtrl ( this, wxID_ANY, std_to_wx (leaf_common_name), wxDefaultPosition, wxDefaultSize, 0, validator), 1, wxALIGN_CENTER_VERTICAL ); |
