summaryrefslogtreecommitdiffstats
path: root/ingen/EngineBase.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 18:03:43 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commitc35cbf038d0992887b8d4bcf5d4ff83c323ec60c (patch)
tree02384c6a8671e866a54cbd9f6002a3dd145116b9 /ingen/EngineBase.hpp
parent8215246d12f49573f7ebcdc62ddae84185c22bfe (diff)
downloadingen-c35cbf038d0992887b8d4bcf5d4ff83c323ec60c.tar.gz
ingen-c35cbf038d0992887b8d4bcf5d4ff83c323ec60c.tar.bz2
ingen-c35cbf038d0992887b8d4bcf5d4ff83c323ec60c.zip
Cleanup: Avoid parameter copying overhead
Diffstat (limited to 'ingen/EngineBase.hpp')
-rw-r--r--ingen/EngineBase.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ingen/EngineBase.hpp b/ingen/EngineBase.hpp
index 7b3239f1..36742601 100644
--- a/ingen/EngineBase.hpp
+++ b/ingen/EngineBase.hpp
@@ -132,12 +132,12 @@ public:
/**
Register a client to receive updates about engine changes.
*/
- virtual void register_client(SPtr<Interface> client) = 0;
+ virtual void register_client(const SPtr<Interface>& client) = 0;
/**
Unregister a client.
*/
- virtual bool unregister_client(SPtr<Interface> client) = 0;
+ virtual bool unregister_client(const SPtr<Interface>& client) = 0;
};
} // namespace ingen