summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-27 18:38:28 -0400
committerDavid Robillard <d@drobilla.net>2022-09-27 18:38:28 -0400
commitc6057cb3c790596747118307d81407c40f90eac4 (patch)
treeef62693aeee0bcf4f3693697ad10d732485b3a9f /src/server/events
parent92cf4f1e48a90d8622f237a732b08487e0cde46c (diff)
downloadingen-c6057cb3c790596747118307d81407c40f90eac4.tar.gz
ingen-c6057cb3c790596747118307d81407c40f90eac4.tar.bz2
ingen-c6057cb3c790596747118307d81407c40f90eac4.zip
Pass by value and use std::move
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/CreateGraph.cpp4
-rw-r--r--src/server/events/CreateGraph.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/server/events/CreateGraph.cpp b/src/server/events/CreateGraph.cpp
index c1a30d4d..54a1788e 100644
--- a/src/server/events/CreateGraph.cpp
+++ b/src/server/events/CreateGraph.cpp
@@ -54,10 +54,10 @@ CreateGraph::CreateGraph(Engine& engine,
int32_t id,
SampleCount timestamp,
raul::Path path,
- const Properties& properties)
+ Properties properties)
: Event(engine, client, id, timestamp)
, _path(std::move(path))
- , _properties(properties)
+ , _properties(std::move(properties))
{}
CreateGraph::~CreateGraph() = default;
diff --git a/src/server/events/CreateGraph.hpp b/src/server/events/CreateGraph.hpp
index 46ca3266..7fc005ad 100644
--- a/src/server/events/CreateGraph.hpp
+++ b/src/server/events/CreateGraph.hpp
@@ -55,7 +55,7 @@ public:
int32_t id,
SampleCount timestamp,
raul::Path path,
- const Properties& properties);
+ Properties properties);
~CreateGraph() override;