summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/CompiledGraph.cpp2
-rw-r--r--src/server/Task.cpp2
-rw-r--r--src/server/Task.hpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/server/CompiledGraph.cpp b/src/server/CompiledGraph.cpp
index 6002afa1..e8eed012 100644
--- a/src/server/CompiledGraph.cpp
+++ b/src/server/CompiledGraph.cpp
@@ -53,7 +53,7 @@ has_provider_with_many_dependants(BlockImpl* n)
}
CompiledGraph::CompiledGraph(GraphImpl* graph)
- : _master(std::make_unique<Task>(Task::Mode::SEQUENTIAL))
+ : _master(std::unique_ptr<Task>(new Task(Task::Mode::SEQUENTIAL)))
{
compile_graph(graph);
}
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()) {
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; }