diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-26 23:20:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-26 23:20:11 +0100 |
| commit | e3a357426c8cddf338ab2304e75bdccefdee2125 (patch) | |
| tree | 91e7c5b1957e67c80aa3f23b9e542e474c9ceeed | |
| parent | 43678c5cc019f610b2474856f39af5b970993a6a (diff) | |
Cleanup: use a make_shared.
| -rw-r--r-- | src/wx/dkdm_output_panel.cc | 16 |
1 files changed, 8 insertions, 8 deletions
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<SendKDMEmailJob>( + kdms, + _filename_format->get(), + _filename_format->get(), + name, + vector<string>() ); } |
