diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/Engine.cpp | 2 | ||||
-rw-r--r-- | src/server/GraphImpl.cpp | 2 | ||||
-rw-r--r-- | src/server/events/Connect.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp index f93c7fe5..18feff1f 100644 --- a/src/server/Engine.cpp +++ b/src/server/Engine.cpp @@ -95,7 +95,7 @@ Engine::Engine(ingen::World& world) , _activated(false) { if (!world.store()) { - world.set_store(SPtr<ingen::Store>(new Store())); + world.set_store(std::make_shared<ingen::Store>()); } for (int i = 0; i < world.conf().option("threads").get<int32_t>(); ++i) { diff --git a/src/server/GraphImpl.cpp b/src/server/GraphImpl.cpp index 75f4cc01..b0f6145a 100644 --- a/src/server/GraphImpl.cpp +++ b/src/server/GraphImpl.cpp @@ -117,7 +117,7 @@ GraphImpl::duplicate(Engine& engine, auto t = port_map.find(arc->tail()); auto h = port_map.find(arc->head()); if (t != port_map.end() && h != port_map.end()) { - dup->add_arc(SPtr<ArcImpl>(new ArcImpl(t->second, h->second))); + dup->add_arc(std::make_shared<ArcImpl>(t->second, h->second)); } } } diff --git a/src/server/events/Connect.cpp b/src/server/events/Connect.cpp index 1ce8f5a1..d27e1e3b 100644 --- a/src/server/events/Connect.cpp +++ b/src/server/events/Connect.cpp @@ -105,7 +105,7 @@ Connect::pre_process(PreProcessContext& ctx) return Event::pre_process_done(Status::EXISTS, _msg.head); } - _arc = SPtr<ArcImpl>(new ArcImpl(tail_output, _head)); + _arc = std::make_shared<ArcImpl>(tail_output, _head); /* Need to be careful about graph port arcs here and adding a block's parent as a dependant/provider, or adding a graph as its own |