summaryrefslogtreecommitdiffstats
path: root/src/server/GraphImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 17:08:51 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commit4ca52683ce01f833c552aa62dd80a6a3e48e785c (patch)
tree3de2448e635799286265b3e74605bac51df957c0 /src/server/GraphImpl.cpp
parent1953452f3dc0c919b17f6f1ee555f5642480db44 (diff)
downloadingen-4ca52683ce01f833c552aa62dd80a6a3e48e785c.tar.gz
ingen-4ca52683ce01f833c552aa62dd80a6a3e48e785c.tar.bz2
ingen-4ca52683ce01f833c552aa62dd80a6a3e48e785c.zip
Cleanup: Use std::make_shared
Diffstat (limited to 'src/server/GraphImpl.cpp')
-rw-r--r--src/server/GraphImpl.cpp2
1 files changed, 1 insertions, 1 deletions
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));
}
}
}