diff options
Diffstat (limited to 'src/server/Task.hpp')
-rw-r--r-- | src/server/Task.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/Task.hpp b/src/server/Task.hpp index b4e9848c..0a545655 100644 --- a/src/server/Task.hpp +++ b/src/server/Task.hpp @@ -90,7 +90,7 @@ public: /** Prepend a child to this task. */ void push_front(Task&& task) { - _children.emplace_front(std::unique_ptr<Task>(new Task(std::move(task)))); + _children.emplace_front(std::make_unique<Task>(std::move(task))); } Mode mode() const { return _mode; } |