summaryrefslogtreecommitdiffstats
path: root/ingen/World.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/World.hpp
parent8215246d12f49573f7ebcdc62ddae84185c22bfe (diff)
downloadingen-c35cbf038d0992887b8d4bcf5d4ff83c323ec60c.tar.gz
ingen-c35cbf038d0992887b8d4bcf5d4ff83c323ec60c.tar.bz2
ingen-c35cbf038d0992887b8d4bcf5d4ff83c323ec60c.zip
Cleanup: Avoid parameter copying overhead
Diffstat (limited to 'ingen/World.hpp')
-rw-r--r--ingen/World.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ingen/World.hpp b/ingen/World.hpp
index c8d69c5b..a2906525 100644
--- a/ingen/World.hpp
+++ b/ingen/World.hpp
@@ -102,16 +102,16 @@ public:
* @param respondee The Interface that will receive responses to commands
* and broadcasts, if applicable.
*/
- virtual SPtr<Interface> new_interface(const URI& engine_uri,
- SPtr<Interface> respondee);
+ virtual SPtr<Interface> new_interface(const URI& engine_uri,
+ const SPtr<Interface>& respondee);
/** Run a script. */
virtual bool run(const std::string& mime_type,
const std::string& filename);
- virtual void set_engine(SPtr<EngineBase> e);
- virtual void set_interface(SPtr<Interface> i);
- virtual void set_store(SPtr<Store> s);
+ virtual void set_engine(const SPtr<EngineBase>& e);
+ virtual void set_interface(const SPtr<Interface>& i);
+ virtual void set_store(const SPtr<Store>& s);
virtual SPtr<EngineBase> engine();
virtual SPtr<Interface> interface();