diff options
Diffstat (limited to 'src/wx/report_problem_dialog.cc')
| -rw-r--r-- | src/wx/report_problem_dialog.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/report_problem_dialog.cc b/src/wx/report_problem_dialog.cc index 68411ee91..1a32e8fad 100644 --- a/src/wx/report_problem_dialog.cc +++ b/src/wx/report_problem_dialog.cc @@ -24,9 +24,11 @@ #include "lib/job_manager.h" #include "lib/send_problem_report_job.h" #include <wx/sizer.h> +#include <boost/make_shared.hpp> using std::string; using boost::shared_ptr; +using boost::make_shared; /** @param film Film that we are working on, or 0 */ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr<Film> film) @@ -103,5 +105,5 @@ ReportProblemDialog::report () return; } - JobManager::instance()->add (shared_ptr<Job> (new SendProblemReportJob (_film, wx_to_std (_email->GetValue ()), wx_to_std (_summary->GetValue ())))); + JobManager::instance()->add (boost::make_shared<SendProblemReportJob> (_film, wx_to_std (_email->GetValue ()), wx_to_std (_summary->GetValue ()))); } |
