diff options
author | David Robillard <d@drobilla.net> | 2022-09-27 18:38:28 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-27 18:38:28 -0400 |
commit | c6057cb3c790596747118307d81407c40f90eac4 (patch) | |
tree | ef62693aeee0bcf4f3693697ad10d732485b3a9f | |
parent | 92cf4f1e48a90d8622f237a732b08487e0cde46c (diff) | |
download | ingen-c6057cb3c790596747118307d81407c40f90eac4.tar.gz ingen-c6057cb3c790596747118307d81407c40f90eac4.tar.bz2 ingen-c6057cb3c790596747118307d81407c40f90eac4.zip |
Pass by value and use std::move
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | src/server/events/CreateGraph.cpp | 4 | ||||
-rw-r--r-- | src/server/events/CreateGraph.hpp | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/.clang-tidy b/.clang-tidy index 675fcd52..b37bdd94 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -20,7 +20,6 @@ Checks: > -llvmlibc-*, -misc-unused-parameters, -modernize-concat-nested-namespaces, - -modernize-pass-by-value, -modernize-use-nodiscard, -modernize-use-trailing-return-type, -readability-identifier-length, 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; |