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/dir_picker_ctrl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wx/dir_picker_ctrl.cc') diff --git a/src/wx/dir_picker_ctrl.cc b/src/wx/dir_picker_ctrl.cc index 4c2f5d2f2..034ae5a5e 100644 --- a/src/wx/dir_picker_ctrl.cc +++ b/src/wx/dir_picker_ctrl.cc @@ -88,8 +88,8 @@ DirPickerCtrl::GetPath () const void DirPickerCtrl::browse_clicked () { - auto d = make_wx(this); - if (d->ShowModal () == wxID_OK) { - SetPath (d->GetPath ()); + wxDirDialog dialog(this); + if (dialog.ShowModal() == wxID_OK) { + SetPath(dialog.GetPath()); } } -- cgit v1.2.3