diff options
author | David Robillard <d@drobilla.net> | 2017-03-26 11:53:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-03-26 17:01:11 +0200 |
commit | d70ddd35cc03b35d3b765079d6039fef7a2a19fa (patch) | |
tree | 36056c38e59eb65f0b054551ccd7086f28cc834e | |
parent | c69d9d5121b5bcb1e408caa475befcfad3c411c3 (diff) | |
download | ingen-d70ddd35cc03b35d3b765079d6039fef7a2a19fa.tar.gz ingen-d70ddd35cc03b35d3b765079d6039fef7a2a19fa.tar.bz2 ingen-d70ddd35cc03b35d3b765079d6039fef7a2a19fa.zip |
Remove Node::base_uri() method
-rw-r--r-- | ingen/Node.hpp | 7 | ||||
-rw-r--r-- | src/gui/GraphCanvas.cpp | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/ingen/Node.hpp b/ingen/Node.hpp index ddf7bf82..51b000bf 100644 --- a/ingen/Node.hpp +++ b/ingen/Node.hpp @@ -77,13 +77,6 @@ public: virtual const Raul::Path& path() const = 0; virtual const Raul::Symbol& symbol() const = 0; - Raul::URI base_uri() const { - if (uri()[uri().size() - 1] == '/') { - return uri(); - } - return Raul::URI(uri() + '/'); - } - protected: friend class Store; virtual void set_path(const Raul::Path& p) = 0; diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index 37af8a5b..e9224cfc 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -638,8 +638,13 @@ GraphCanvas::copy_selection() { std::lock_guard<std::mutex> lock(_app.world()->rdf_mutex()); + std::string base_uri = _graph->uri(); + if (base_uri[base_uri.size() - 1] != '/') { + base_uri += '/'; + } + Serialiser serialiser(*_app.world()); - serialiser.start_to_string(_graph->path(), _graph->base_uri()); + serialiser.start_to_string(_graph->path(), base_uri); for_each_selected_node(serialise_node, &serialiser); for_each_selected_edge(serialise_arc, &serialiser); |