From 1a33b800ac6245f59c99d76438feee8a21f04043 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 25 Oct 2015 17:47:28 +0000 Subject: Fix saving and loading of copy-pasted blocks git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5785 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/events/CreateBlock.cpp | 12 ++++++------ src/server/events/CreateBlock.hpp | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src/server') diff --git a/src/server/events/CreateBlock.cpp b/src/server/events/CreateBlock.cpp index 22c8731f..e213f765 100644 --- a/src/server/events/CreateBlock.cpp +++ b/src/server/events/CreateBlock.cpp @@ -33,12 +33,12 @@ namespace Ingen { namespace Server { namespace Events { -CreateBlock::CreateBlock(Engine& engine, - SPtr client, - int32_t id, - SampleCount timestamp, - const Raul::Path& path, - const Resource::Properties& properties) +CreateBlock::CreateBlock(Engine& engine, + SPtr client, + int32_t id, + SampleCount timestamp, + const Raul::Path& path, + Resource::Properties& properties) : Event(engine, client, id, timestamp) , _path(path) , _properties(properties) diff --git a/src/server/events/CreateBlock.hpp b/src/server/events/CreateBlock.hpp index ae068f1e..189a0896 100644 --- a/src/server/events/CreateBlock.hpp +++ b/src/server/events/CreateBlock.hpp @@ -38,12 +38,12 @@ namespace Events { class CreateBlock : public Event { public: - CreateBlock(Engine& engine, - SPtr client, - int32_t id, - SampleCount timestamp, - const Raul::Path& block_path, - const Resource::Properties& properties); + CreateBlock(Engine& engine, + SPtr client, + int32_t id, + SampleCount timestamp, + const Raul::Path& block_path, + Resource::Properties& properties); ~CreateBlock(); @@ -53,7 +53,7 @@ public: private: Raul::Path _path; - Resource::Properties _properties; + Resource::Properties& _properties; Events::Get::Response _update; GraphImpl* _graph; BlockImpl* _block; -- cgit v1.2.1