summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-02 10:48:43 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 12:51:07 +0200
commitc17ac70512d473fa6ab6b2f4c9fb0bd4e716d3c6 (patch)
treed02eb9953457d553fa41395960e7d70d34b3898f /src
parent3f807fae50037ffcc0b69f3cd6b16a7f7d88af87 (diff)
downloadingen-c17ac70512d473fa6ab6b2f4c9fb0bd4e716d3c6.tar.gz
ingen-c17ac70512d473fa6ab6b2f4c9fb0bd4e716d3c6.tar.bz2
ingen-c17ac70512d473fa6ab6b2f4c9fb0bd4e716d3c6.zip
Fix return-std-move-in-c++11 warning
Diffstat (limited to 'src')
-rw-r--r--src/Parser.cpp6
-rw-r--r--src/server/LV2Block.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Parser.cpp b/src/Parser.cpp
index 55ab4695..0f5adb0c 100644
--- a/src/Parser.cpp
+++ b/src/Parser.cpp
@@ -384,7 +384,7 @@ parse_graph(ingen::World& world,
}
if (ctx != Resource::Graph::INTERNAL) {
- return graph_path; // Not parsing graph internals, finished now
+ return {graph_path}; // Not parsing graph internals, finished now
}
// For each block in this graph
@@ -428,7 +428,7 @@ parse_graph(ingen::World& world,
// Now that all ports and blocks exist, create arcs inside graph
parse_arcs(world, target, model, base_uri, subject, graph_path);
- return graph_path;
+ return {graph_path};
}
static bool
@@ -697,7 +697,7 @@ Parser::parse_string(ingen::World& world,
Sord::Node subject;
parse(world, target, model, actual_base, subject, parent, symbol, data);
- return actual_base;
+ return {actual_base};
}
} // namespace ingen
diff --git a/src/server/LV2Block.cpp b/src/server/LV2Block.cpp
index bc6561d3..15c66a2c 100644
--- a/src/server/LV2Block.cpp
+++ b/src/server/LV2Block.cpp
@@ -730,7 +730,7 @@ LV2Block::save_preset(const URI& uri,
lilv_world_load_bundle(lworld, lbundle);
lilv_node_free(lbundle);
- return preset;
+ return {preset};
}
return boost::optional<Resource>();