summaryrefslogtreecommitdiffstats
path: root/src/server/Engine.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-08 09:06:55 +0100
committerDavid Robillard <d@drobilla.net>2019-03-08 09:06:55 +0100
commitacb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9 (patch)
treea229f986933c8ef9d9c15b36ecf58b04ebeaa7c0 /src/server/Engine.hpp
parent112eb3a668f65547b1757978b02cbafebf97b794 (diff)
downloadingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.tar.gz
ingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.tar.bz2
ingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.zip
Pass World everywhere by reference
Diffstat (limited to 'src/server/Engine.hpp')
-rw-r--r--src/server/Engine.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/Engine.hpp b/src/server/Engine.hpp
index 02da0719..a86397ea 100644
--- a/src/server/Engine.hpp
+++ b/src/server/Engine.hpp
@@ -74,7 +74,7 @@ class Worker;
class INGEN_API Engine : public EngineBase
{
public:
- explicit Engine(ingen::World* world);
+ explicit Engine(ingen::World& world);
virtual ~Engine();
Engine(const Engine&) = delete;
@@ -129,7 +129,7 @@ public:
/** Process all events (no RT limits). */
unsigned process_all_events();
- ingen::World* world() const { return _world; }
+ ingen::World& world() const { return _world; }
Log& log() const;
const SPtr<Interface>& interface() const { return _interface; }
@@ -176,7 +176,7 @@ public:
Properties load_properties() const;
private:
- ingen::World* _world;
+ ingen::World& _world;
SPtr<LV2Options> _options;
UPtr<BufferFactory> _buffer_factory;