diff options
author | David Robillard <d@drobilla.net> | 2019-12-08 18:03:43 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-08 20:59:06 +0100 |
commit | c35cbf038d0992887b8d4bcf5d4ff83c323ec60c (patch) | |
tree | 02384c6a8671e866a54cbd9f6002a3dd145116b9 /src/gui/GraphView.cpp | |
parent | 8215246d12f49573f7ebcdc62ddae84185c22bfe (diff) | |
download | ingen-c35cbf038d0992887b8d4bcf5d4ff83c323ec60c.tar.gz ingen-c35cbf038d0992887b8d4bcf5d4ff83c323ec60c.tar.bz2 ingen-c35cbf038d0992887b8d4bcf5d4ff83c323ec60c.zip |
Cleanup: Avoid parameter copying overhead
Diffstat (limited to 'src/gui/GraphView.cpp')
-rw-r--r-- | src/gui/GraphView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/GraphView.cpp b/src/gui/GraphView.cpp index 9e39ef7c..36c6caed 100644 --- a/src/gui/GraphView.cpp +++ b/src/gui/GraphView.cpp @@ -66,7 +66,7 @@ GraphView::init(App& app) } void -GraphView::set_graph(SPtr<const GraphModel> graph) +GraphView::set_graph(const SPtr<const GraphModel>& graph) { assert(!_canvas); // FIXME: remove @@ -101,7 +101,7 @@ GraphView::set_graph(SPtr<const GraphModel> graph) } SPtr<GraphView> -GraphView::create(App& app, SPtr<const GraphModel> graph) +GraphView::create(App& app, const SPtr<const GraphModel>& graph) { GraphView* result = nullptr; Glib::RefPtr<Gtk::Builder> xml = WidgetFactory::create("warehouse_win"); |