diff options
Diffstat (limited to 'src/server/NodeImpl.hpp')
-rw-r--r-- | src/server/NodeImpl.hpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/server/NodeImpl.hpp b/src/server/NodeImpl.hpp index 8e3795d3..f4de621e 100644 --- a/src/server/NodeImpl.hpp +++ b/src/server/NodeImpl.hpp @@ -57,13 +57,10 @@ public: BlockImpl* parent() { return _parent; } /** Rename */ - virtual void set_path(const Raul::Path& new_path) { - _path = new_path; - const char* const new_sym = new_path.symbol(); - if (new_sym[0] != '\0') { - _symbol = Raul::Symbol(new_sym); - } - set_uri(path_to_uri(new_path)); + void set_uri(const Raul::URI& uri) override { + _path = uri_to_path(uri); + _symbol = Raul::Symbol(_path.is_root() ? "main" : _path.symbol()); + Node::set_uri(uri); } const Atom& get_property(const Raul::URI& key) const; |