summaryrefslogtreecommitdiff
path: root/src/wx/job_manager_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-21 01:14:06 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-21 01:14:06 +0100
commit5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f (patch)
tree769dca1358e35017ce5a5b3ab2dfafe2b24d61ed /src/wx/job_manager_view.cc
parent4e83acad0c2a5c528709a175a80261b8147d3b49 (diff)
Use make_shared<>.
Diffstat (limited to 'src/wx/job_manager_view.cc')
-rw-r--r--src/wx/job_manager_view.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/job_manager_view.cc b/src/wx/job_manager_view.cc
index cd6918b72..cba221784 100644
--- a/src/wx/job_manager_view.cc
+++ b/src/wx/job_manager_view.cc
@@ -19,7 +19,7 @@
*/
/** @file src/job_manager_view.cc
- * @brief Class generating a GTK widget to show the progress of jobs.
+ * @brief Class generating a widget to show the progress of jobs.
*/
#include "job_manager_view.h"
@@ -30,6 +30,7 @@
#include "lib/util.h"
#include "lib/exceptions.h"
#include "lib/compose.hpp"
+#include <boost/make_shared.hpp>
#include <iostream>
using std::string;
@@ -38,6 +39,7 @@ using std::map;
using std::min;
using std::cout;
using boost::shared_ptr;
+using boost::make_shared;
using boost::weak_ptr;
/** Must be called in the GUI thread */
@@ -68,7 +70,7 @@ JobManagerView::job_added (weak_ptr<Job> j)
{
shared_ptr<Job> job = j.lock ();
if (job) {
- _job_records.push_back (shared_ptr<JobView> (new JobView (job, this, _panel, _table)));
+ _job_records.push_back (make_shared<JobView> (job, this, _panel, _table));
}
}