From d0308d53dd9f4d036d8c5fe8023920fcdfd43f39 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 9 Feb 2025 02:06:04 +0100 Subject: Remove unnecessary wx_ptr It was only ever used for wxDialog subclasses, which can be stack-allocated. --- src/wx/recipient_dialog.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wx/recipient_dialog.cc') diff --git a/src/wx/recipient_dialog.cc b/src/wx/recipient_dialog.cc index 79856d66e..85c01c97e 100644 --- a/src/wx/recipient_dialog.cc +++ b/src/wx/recipient_dialog.cc @@ -168,9 +168,9 @@ RecipientDialog::load_recipient (boost::filesystem::path file) void RecipientDialog::get_recipient_from_file () { - auto d = make_wx(this, _("Select Certificate File")); - if (d->ShowModal () == wxID_OK) { - load_recipient (boost::filesystem::path (wx_to_std (d->GetPath ()))); + wxFileDialog dialog(this, _("Select Certificate File")); + if (dialog.ShowModal() == wxID_OK) { + load_recipient(boost::filesystem::path(wx_to_std(dialog.GetPath()))); } setup_sensitivity (); -- cgit v1.2.3