summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/job_view.cc3
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));
}
}
}