diff options
Diffstat (limited to 'src/Serialiser.cpp')
-rw-r--r-- | src/Serialiser.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp index fede65c6..10f587f4 100644 --- a/src/Serialiser.cpp +++ b/src/Serialiser.cpp @@ -70,12 +70,12 @@ struct Serialiser::Impl { void start_to_file(const Raul::Path& root, const FilePath& filename); - std::set<const Resource*> serialise_graph(SPtr<const Node> graph, - const Sord::Node& graph_id); + std::set<const Resource*> serialise_graph(const SPtr<const Node>& graph, + const Sord::Node& graph_id); - void serialise_block(SPtr<const Node> block, - const Sord::Node& class_id, - const Sord::Node& block_id); + void serialise_block(const SPtr<const Node>& block, + const Sord::Node& class_id, + const Sord::Node& block_id); void serialise_port(const Node* port, Resource::Graph context, @@ -84,18 +84,18 @@ struct Serialiser::Impl { void serialise_properties(Sord::Node id, const Properties& props); - void write_bundle(SPtr<const Node> graph, const URI& uri); + void write_bundle(const SPtr<const Node>& graph, const URI& uri); Sord::Node path_rdf_node(const Raul::Path& path); - void write_manifest(const FilePath& bundle_path, - SPtr<const Node> graph); + void write_manifest(const FilePath& bundle_path, + const SPtr<const Node>& graph); - void write_plugins(const FilePath& bundle_path, - const std::set<const Resource*> plugins); + void write_plugins(const FilePath& bundle_path, + const std::set<const Resource*>& plugins); - void serialise_arc(const Sord::Node& parent, - SPtr<const Arc> arc); + void serialise_arc(const Sord::Node& parent, + const SPtr<const Arc>& arc); std::string finish(); @@ -116,8 +116,8 @@ Serialiser::~Serialiser() {} void -Serialiser::Impl::write_manifest(const FilePath& bundle_path, - SPtr<const Node> graph) +Serialiser::Impl::write_manifest(const FilePath& bundle_path, + const SPtr<const Node>&) { const FilePath manifest_path(bundle_path / "manifest.ttl"); const FilePath binary_path(ingen_module_path("lv2")); @@ -147,8 +147,8 @@ Serialiser::Impl::write_manifest(const FilePath& bundle_path, } void -Serialiser::Impl::write_plugins(const FilePath& bundle_path, - const std::set<const Resource*> plugins) +Serialiser::Impl::write_plugins(const FilePath& bundle_path, + const std::set<const Resource*>& plugins) { const FilePath plugins_path(bundle_path / "plugins.ttl"); @@ -179,13 +179,13 @@ Serialiser::Impl::write_plugins(const FilePath& bundle_path, } void -Serialiser::write_bundle(SPtr<const Node> graph, const URI& uri) +Serialiser::write_bundle(const SPtr<const Node>& graph, const URI& uri) { me->write_bundle(graph, uri); } void -Serialiser::Impl::write_bundle(SPtr<const Node> graph, const URI& uri) +Serialiser::Impl::write_bundle(const SPtr<const Node>& graph, const URI& uri) { FilePath path(uri.path()); if (filesystem::exists(path) && !filesystem::is_directory(path)) { @@ -283,7 +283,7 @@ Serialiser::Impl::path_rdf_node(const Raul::Path& path) } void -Serialiser::serialise(SPtr<const Node> object, Resource::Graph context) +Serialiser::serialise(const SPtr<const Node>& object, Resource::Graph context) { if (!me->_model) { throw std::logic_error("serialise called without serialisation in progress"); @@ -304,8 +304,8 @@ Serialiser::serialise(SPtr<const Node> object, Resource::Graph context) } std::set<const Resource*> -Serialiser::Impl::serialise_graph(SPtr<const Node> graph, - const Sord::Node& graph_id) +Serialiser::Impl::serialise_graph(const SPtr<const Node>& graph, + const Sord::Node& graph_id) { Sord::World& world = _model->world(); const URIs& uris = _world.uris(); @@ -416,9 +416,9 @@ Serialiser::Impl::serialise_graph(SPtr<const Node> graph, } void -Serialiser::Impl::serialise_block(SPtr<const Node> block, - const Sord::Node& class_id, - const Sord::Node& block_id) +Serialiser::Impl::serialise_block(const SPtr<const Node>& block, + const Sord::Node& class_id, + const Sord::Node& block_id) { const URIs& uris = _world.uris(); @@ -495,15 +495,15 @@ Serialiser::Impl::serialise_port(const Node* port, } void -Serialiser::serialise_arc(const Sord::Node& parent, - SPtr<const Arc> arc) +Serialiser::serialise_arc(const Sord::Node& parent, + const SPtr<const Arc>& arc) { return me->serialise_arc(parent, arc); } void -Serialiser::Impl::serialise_arc(const Sord::Node& parent, - SPtr<const Arc> arc) +Serialiser::Impl::serialise_arc(const Sord::Node& parent, + const SPtr<const Arc>& arc) { if (!_model) { throw std::logic_error( |