From c6057cb3c790596747118307d81407c40f90eac4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 27 Sep 2022 18:38:28 -0400 Subject: Pass by value and use std::move --- src/server/events/CreateGraph.cpp | 4 ++-- src/server/events/CreateGraph.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/events') 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; -- cgit v1.2.1