summaryrefslogtreecommitdiffstats
path: root/src/server/Task.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Task.hpp')
-rw-r--r--src/server/Task.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/Task.hpp b/src/server/Task.hpp
index 3bcfbb40..2cdad71b 100644
--- a/src/server/Task.hpp
+++ b/src/server/Task.hpp
@@ -85,7 +85,7 @@ public:
/** Prepend a child to this task. */
void push_front(Task&& task) {
- _children.emplace_front(std::make_unique<Task>(std::move(task)));
+ _children.emplace_front(std::unique_ptr<Task>(new Task(std::move(task))));
}
Mode mode() const { return _mode; }