summaryrefslogtreecommitdiffstats
path: root/src/server/Task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Task.cpp')
-rw-r--r--src/server/Task.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/Task.cpp b/src/server/Task.cpp
index dd09e060..d2cb2683 100644
--- a/src/server/Task.cpp
+++ b/src/server/Task.cpp
@@ -110,7 +110,7 @@ Task::simplify(std::unique_ptr<Task>&& task)
return std::move(task);
}
- std::unique_ptr<Task> ret = std::make_unique<Task>(task->mode());
+ std::unique_ptr<Task> ret = std::unique_ptr<Task>(new Task(task->mode()));
for (auto&& c : task->_children) {
auto child = simplify(std::move(c));
if (!child->empty()) {