diff options
author | David Robillard <d@drobilla.net> | 2019-12-08 17:08:51 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-08 20:59:06 +0100 |
commit | 4ca52683ce01f833c552aa62dd80a6a3e48e785c (patch) | |
tree | 3de2448e635799286265b3e74605bac51df957c0 /src/server | |
parent | 1953452f3dc0c919b17f6f1ee555f5642480db44 (diff) | |
download | ingen-4ca52683ce01f833c552aa62dd80a6a3e48e785c.tar.gz ingen-4ca52683ce01f833c552aa62dd80a6a3e48e785c.tar.bz2 ingen-4ca52683ce01f833c552aa62dd80a6a3e48e785c.zip |
Cleanup: Use std::make_shared
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 |