diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-25 23:24:23 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-25 23:24:23 +0200 |
| commit | b50056a1874bab1fe3310c4e63526780130694ac (patch) | |
| tree | a49b1385290d36ea338d58d6e9d969a72a3d314a | |
| parent | 7def2087fb0c3383b65c0e9d815e7e82eb994301 (diff) | |
Use a make_shared.
| -rw-r--r-- | src/wx/job_view.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc index 62539e5dd..d358d9f75 100644 --- a/src/wx/job_view.cc +++ b/src/wx/job_view.cc @@ -40,6 +40,7 @@ LIBDCP_ENABLE_WARNINGS #include <boost/algorithm/string.hpp> +using std::make_shared; using std::min; using std::shared_ptr; using std::string; @@ -172,7 +173,7 @@ JobView::finished() string body = Config::instance()->notification_email(); boost::algorithm::replace_all(body, "$JOB_NAME", _job->name()); boost::algorithm::replace_all(body, "$JOB_STATUS", _job->status()); - JobManager::instance()->add_after(_job, shared_ptr<Job>(new SendNotificationEmailJob(body))); + JobManager::instance()->add_after(_job, make_shared<SendNotificationEmailJob>(body)); } } } |
