summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-02 18:24:22 +0100
committerDavid Robillard <d@drobilla.net>2021-01-02 18:27:11 +0100
commit50e7337aadcd2cbd6cbbfaad920708e3ff8875ee (patch)
tree0a6d2500f9822ddb632c34f45e6fea6cb7180ae9 /src
parentf0e33dd09a390ca946e95a6f55fea397dca0ca1f (diff)
downloadingen-50e7337aadcd2cbd6cbbfaad920708e3ff8875ee.tar.gz
ingen-50e7337aadcd2cbd6cbbfaad920708e3ff8875ee.tar.bz2
ingen-50e7337aadcd2cbd6cbbfaad920708e3ff8875ee.zip
Pass by value and use std::move
Diffstat (limited to 'src')
-rw-r--r--src/server/InternalPlugin.cpp10
-rw-r--r--src/server/InternalPlugin.hpp4
-rw-r--r--src/server/events/CreateBlock.cpp4
-rw-r--r--src/server/events/CreateBlock.hpp2
-rw-r--r--src/server/events/CreateGraph.cpp4
-rw-r--r--src/server/events/CreateGraph.hpp2
-rw-r--r--src/server/events/CreatePort.cpp4
-rw-r--r--src/server/events/CreatePort.hpp2
8 files changed, 15 insertions, 17 deletions
diff --git a/src/server/InternalPlugin.cpp b/src/server/InternalPlugin.cpp
index 7cdf3ef6..0355ff1e 100644
--- a/src/server/InternalPlugin.cpp
+++ b/src/server/InternalPlugin.cpp
@@ -26,14 +26,14 @@
#include "ingen/URIs.hpp"
+#include <utility>
+
namespace ingen {
namespace server {
-InternalPlugin::InternalPlugin(URIs& uris,
- const URI& uri,
- const raul::Symbol& symbol)
- : PluginImpl(uris, uris.ingen_Internal.urid_atom(), uri)
- , _symbol(symbol)
+InternalPlugin::InternalPlugin(URIs& uris, const URI& uri, raul::Symbol symbol)
+ : PluginImpl(uris, uris.ingen_Internal.urid_atom(), uri)
+ , _symbol(std::move(symbol))
{
set_property(uris.rdf_type, uris.ingen_Internal);
}
diff --git a/src/server/InternalPlugin.hpp b/src/server/InternalPlugin.hpp
index 92993d70..9dfabc5f 100644
--- a/src/server/InternalPlugin.hpp
+++ b/src/server/InternalPlugin.hpp
@@ -41,9 +41,7 @@ class GraphImpl;
class InternalPlugin : public PluginImpl
{
public:
- InternalPlugin(URIs& uris,
- const URI& uri,
- const raul::Symbol& symbol);
+ InternalPlugin(URIs& uris, const URI& uri, raul::Symbol symbol);
BlockImpl* instantiate(BufferFactory& bufs,
const raul::Symbol& symbol,
diff --git a/src/server/events/CreateBlock.cpp b/src/server/events/CreateBlock.cpp
index 9888b578..0898a6a0 100644
--- a/src/server/events/CreateBlock.cpp
+++ b/src/server/events/CreateBlock.cpp
@@ -59,10 +59,10 @@ CreateBlock::CreateBlock(Engine& engine,
const std::shared_ptr<Interface>& client,
int32_t id,
SampleCount timestamp,
- const raul::Path& path,
+ raul::Path path,
Properties& properties)
: Event(engine, client, id, timestamp)
- , _path(path)
+ , _path(std::move(path))
, _properties(properties)
, _graph(nullptr)
, _block(nullptr)
diff --git a/src/server/events/CreateBlock.hpp b/src/server/events/CreateBlock.hpp
index 53eff006..97a54b3f 100644
--- a/src/server/events/CreateBlock.hpp
+++ b/src/server/events/CreateBlock.hpp
@@ -54,7 +54,7 @@ public:
const std::shared_ptr<Interface>& client,
int32_t id,
SampleCount timestamp,
- const raul::Path& path,
+ raul::Path path,
Properties& properties);
~CreateBlock() override;
diff --git a/src/server/events/CreateGraph.cpp b/src/server/events/CreateGraph.cpp
index ea66ae55..6b85281d 100644
--- a/src/server/events/CreateGraph.cpp
+++ b/src/server/events/CreateGraph.cpp
@@ -54,10 +54,10 @@ CreateGraph::CreateGraph(Engine& engine,
const std::shared_ptr<Interface>& client,
int32_t id,
SampleCount timestamp,
- const raul::Path& path,
+ raul::Path path,
const Properties& properties)
: Event(engine, client, id, timestamp)
- , _path(path)
+ , _path(std::move(path))
, _properties(properties)
, _graph(nullptr)
, _parent(nullptr)
diff --git a/src/server/events/CreateGraph.hpp b/src/server/events/CreateGraph.hpp
index e502c4e8..d9e994c0 100644
--- a/src/server/events/CreateGraph.hpp
+++ b/src/server/events/CreateGraph.hpp
@@ -54,7 +54,7 @@ public:
const std::shared_ptr<Interface>& client,
int32_t id,
SampleCount timestamp,
- const raul::Path& path,
+ raul::Path path,
const Properties& properties);
~CreateGraph() override;
diff --git a/src/server/events/CreatePort.cpp b/src/server/events/CreatePort.cpp
index 71b37735..1fa2a528 100644
--- a/src/server/events/CreatePort.cpp
+++ b/src/server/events/CreatePort.cpp
@@ -53,10 +53,10 @@ CreatePort::CreatePort(Engine& engine,
const std::shared_ptr<Interface>& client,
int32_t id,
SampleCount timestamp,
- const raul::Path& path,
+ raul::Path path,
const Properties& properties)
: Event(engine, client, id, timestamp)
- , _path(path)
+ , _path(std::move(path))
, _port_type(PortType::UNKNOWN)
, _buf_type(0)
, _graph(nullptr)
diff --git a/src/server/events/CreatePort.hpp b/src/server/events/CreatePort.hpp
index 351f0159..73746434 100644
--- a/src/server/events/CreatePort.hpp
+++ b/src/server/events/CreatePort.hpp
@@ -58,7 +58,7 @@ public:
const std::shared_ptr<Interface>& client,
int32_t id,
SampleCount timestamp,
- const raul::Path& path,
+ raul::Path path,
const Properties& properties);
bool pre_process(PreProcessContext& ctx) override;