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/config_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/config_dialog.cc')
| -rw-r--r-- | src/wx/config_dialog.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc index 653f868c8..bd8582ea6 100644 --- a/src/wx/config_dialog.cc +++ b/src/wx/config_dialog.cc @@ -317,7 +317,7 @@ CertificateChainEditor::CertificateChainEditor ( int r = 0; add_label_to_sizer (table, this, _("Leaf private key"), true, wxGBPosition (r, 0)); - _private_key = new StaticText (this, wxT("")); + _private_key = new StaticText(this, {}); wxFont font = _private_key->GetFont (); font.SetFamily (wxFONTFAMILY_TELETYPE); _private_key->SetFont (font); @@ -456,7 +456,7 @@ CertificateChainEditor::export_certificate () } auto d = make_wx<wxFileDialog>( - this, _("Select Certificate File"), wxEmptyString, default_name, wxT ("PEM files (*.pem)|*.pem"), + this, _("Select Certificate File"), wxEmptyString, default_name, char_to_wx("PEM files (*.pem)|*.pem"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT ); @@ -486,7 +486,7 @@ void CertificateChainEditor::export_chain () { auto d = make_wx<wxFileDialog>( - this, _("Select Chain File"), wxEmptyString, wxT("certificate_chain.pem"), wxT("PEM files (*.pem)|*.pem"), + this, _("Select Chain File"), wxEmptyString, char_to_wx("certificate_chain.pem"), char_to_wx("PEM files (*.pem)|*.pem"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT ); @@ -610,7 +610,7 @@ CertificateChainEditor::export_private_key () } auto d = make_wx<wxFileDialog>( - this, _("Select Key File"), wxEmptyString, wxT("private_key.pem"), wxT("PEM files (*.pem)|*.pem"), + this, _("Select Key File"), wxEmptyString, char_to_wx("private_key.pem"), char_to_wx("PEM files (*.pem)|*.pem"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT ); @@ -728,7 +728,7 @@ void KeysPage::export_decryption_chain_and_key () { auto d = make_wx<wxFileDialog>( - _panel, _("Select Export File"), wxEmptyString, wxEmptyString, wxT ("DOM files (*.dom)|*.dom"), + _panel, _("Select Export File"), wxEmptyString, wxEmptyString, char_to_wx("DOM files (*.dom)|*.dom"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT ); @@ -762,7 +762,7 @@ KeysPage::import_decryption_chain_and_key () } auto d = make_wx<wxFileDialog>( - _panel, _("Select File To Import"), wxEmptyString, wxEmptyString, wxT ("DOM files (*.dom)|*.dom") + _panel, _("Select File To Import"), wxEmptyString, wxEmptyString, char_to_wx("DOM files (*.dom)|*.dom") ); if (d->ShowModal() != wxID_OK) { @@ -821,10 +821,10 @@ KeysPage::export_decryption_certificate () if (!config->dcp_issuer().empty()) { default_name += char_to_wx("_") + std_to_wx(careful_string_filter(config->dcp_issuer())); } - default_name += wxT("_kdm_decryption_cert.pem"); + default_name += char_to_wx("_kdm_decryption_cert.pem"); auto d = make_wx<wxFileDialog>( - _panel, _("Select Certificate File"), wxEmptyString, default_name, wxT("PEM files (*.pem)|*.pem"), + _panel, _("Select Certificate File"), wxEmptyString, default_name, char_to_wx("PEM files (*.pem)|*.pem"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT ); @@ -864,7 +864,7 @@ SoundPage::setup () wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL); _sound_output = new wxChoice (_panel, wxID_ANY); s->Add (_sound_output, 0); - _sound_output_details = new wxStaticText (_panel, wxID_ANY, wxT("")); + _sound_output_details = new wxStaticText(_panel, wxID_ANY, {}); s->Add (_sound_output_details, 1, wxALIGN_CENTER_VERTICAL | wxLEFT, DCPOMATIC_SIZER_X_GAP); table->Add (s, wxGBPosition(r, 1)); ++r; |
