From e3a357426c8cddf338ab2304e75bdccefdee2125 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 26 Mar 2025 23:20:11 +0100 Subject: Cleanup: use a make_shared. --- src/wx/dkdm_output_panel.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/wx/dkdm_output_panel.cc b/src/wx/dkdm_output_panel.cc index e78da98da..e85e29214 100644 --- a/src/wx/dkdm_output_panel.cc +++ b/src/wx/dkdm_output_panel.cc @@ -49,9 +49,11 @@ using std::exception; using std::function; using std::list; using std::make_pair; +using std::make_shared; using std::pair; using std::shared_ptr; using std::string; +using std::vector; DKDMOutputPanel::DKDMOutputPanel (wxWindow* parent) @@ -173,14 +175,12 @@ DKDMOutputPanel::make ( ); if (_email->GetValue ()) { - job.reset ( - new SendKDMEmailJob ( - kdms, - _filename_format->get(), - _filename_format->get(), - name, - {} - ) + job = make_shared( + kdms, + _filename_format->get(), + _filename_format->get(), + name, + vector() ); } -- cgit v1.2.3