From c35cbf038d0992887b8d4bcf5d4ff83c323ec60c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Dec 2019 18:03:43 +0100 Subject: Cleanup: Avoid parameter copying overhead --- src/server/GraphImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/GraphImpl.cpp') diff --git a/src/server/GraphImpl.cpp b/src/server/GraphImpl.cpp index c00819c2..db1b4561 100644 --- a/src/server/GraphImpl.cpp +++ b/src/server/GraphImpl.cpp @@ -271,7 +271,7 @@ GraphImpl::remove_block(BlockImpl& block) } void -GraphImpl::add_arc(SPtr a) +GraphImpl::add_arc(const SPtr& a) { ThreadManager::assert_thread(THREAD_PRE_PROCESS); _arcs.emplace(std::make_pair(a->tail(), a->head()), a); -- cgit v1.2.1