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/gui/LoadGraphWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/LoadGraphWindow.cpp') diff --git a/src/gui/LoadGraphWindow.cpp b/src/gui/LoadGraphWindow.cpp index fb1dc9ff..e3588ddf 100644 --- a/src/gui/LoadGraphWindow.cpp +++ b/src/gui/LoadGraphWindow.cpp @@ -97,9 +97,9 @@ LoadGraphWindow::LoadGraphWindow(BaseObjectType* cobject, } void -LoadGraphWindow::present(SPtr graph, - bool import, - Properties data) +LoadGraphWindow::present(const SPtr& graph, + bool import, + const Properties& data) { _import = import; set_graph(graph); @@ -117,7 +117,7 @@ LoadGraphWindow::present(SPtr graph, * This function MUST be called before using the window in any way! */ void -LoadGraphWindow::set_graph(SPtr graph) +LoadGraphWindow::set_graph(const SPtr& graph) { _graph = graph; _symbol_entry->set_text(""); -- cgit v1.2.1