diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-10 00:41:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-17 12:59:25 +0200 |
| commit | dc97c7cde9937a5c19a9412b5877e854974006a9 (patch) | |
| tree | e55e1297f76e7dbd8845b95d40f546570672e482 /src/wx/recipient_dialog.cc | |
| parent | 1b01a029fa4fc5768c9d25c206157b8ab00f6edc (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/recipient_dialog.cc')
| -rw-r--r-- | src/wx/recipient_dialog.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/recipient_dialog.cc b/src/wx/recipient_dialog.cc index 992c88362..79856d66e 100644 --- a/src/wx/recipient_dialog.cc +++ b/src/wx/recipient_dialog.cc @@ -96,12 +96,12 @@ RecipientDialog::RecipientDialog ( auto font = _name->GetFont (); font.SetFamily (wxFONTFAMILY_TELETYPE); dc.SetFont (font); - auto size = dc.GetTextExtent(wxT("1234567890123456789012345678")); + auto size = dc.GetTextExtent(char_to_wx("1234567890123456789012345678")); size.SetHeight (-1); add_label_to_sizer (_sizer, this, _("Recipient certificate"), true, wxGBPosition (r, 0)); auto s = new wxBoxSizer (wxHORIZONTAL); - _recipient_thumbprint = new StaticText (this, wxT (""), wxDefaultPosition, size); + _recipient_thumbprint = new StaticText(this, {}, wxDefaultPosition, size); _recipient_thumbprint->SetFont (font); set_recipient (recipient); _get_recipient_from_file = new Button (this, _("Get from file...")); |
