summaryrefslogtreecommitdiffstats
path: root/src/server/ingen_lv2.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-25 16:13:15 -0500
committerDavid Robillard <d@drobilla.net>2017-12-25 16:26:13 -0500
commitbd89362f08dc07b3444d19bc373f2b4f8bc47b2c (patch)
tree047cd2cf2779d87f1db561186410aa545f632c7b /src/server/ingen_lv2.cpp
parent71808f61f7db48a7ab4e16537b94ee5686749909 (diff)
downloadingen-bd89362f08dc07b3444d19bc373f2b4f8bc47b2c.tar.gz
ingen-bd89362f08dc07b3444d19bc373f2b4f8bc47b2c.tar.bz2
ingen-bd89362f08dc07b3444d19bc373f2b4f8bc47b2c.zip
Use std::move to potentially avoid copying
Diffstat (limited to 'src/server/ingen_lv2.cpp')
-rw-r--r--src/server/ingen_lv2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index 2ad2a1f1..92cb52b0 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -60,7 +60,7 @@ namespace Ingen {
/** Record of a graph in this bundle. */
struct LV2Graph : public Parser::ResourceRecord {
- LV2Graph(const Parser::ResourceRecord& record);
+ LV2Graph(Parser::ResourceRecord record);
LV2_Descriptor descriptor;
};
@@ -791,8 +791,8 @@ ingen_extension_data(const char* uri)
return nullptr;
}
-LV2Graph::LV2Graph(const Parser::ResourceRecord& record)
- : Parser::ResourceRecord(record)
+LV2Graph::LV2Graph(Parser::ResourceRecord record)
+ : Parser::ResourceRecord(std::move(record))
{
descriptor.URI = uri.c_str();
descriptor.instantiate = ingen_instantiate;