diff options
author | David Robillard <d@drobilla.net> | 2012-08-14 04:23:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-14 04:23:23 +0000 |
commit | 80fee5c311fdbdeda573ec81f59158a5fc87d0a1 (patch) | |
tree | 8e7e5a6c9bda32bbe0ae8e8c9f6ab23e44c7c181 /ingen/GraphObject.hpp | |
parent | 058eaf65642268047a984a5c80d54a1f62a85130 (diff) | |
download | ingen-80fee5c311fdbdeda573ec81f59158a5fc87d0a1.tar.gz ingen-80fee5c311fdbdeda573ec81f59158a5fc87d0a1.tar.bz2 ingen-80fee5c311fdbdeda573ec81f59158a5fc87d0a1.zip |
Update for latest Raul.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4687 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen/GraphObject.hpp')
-rw-r--r-- | ingen/GraphObject.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ingen/GraphObject.hpp b/ingen/GraphObject.hpp index fef73c6e..048aaebd 100644 --- a/ingen/GraphObject.hpp +++ b/ingen/GraphObject.hpp @@ -66,15 +66,17 @@ public: static Raul::URI root_uri() { return Raul::URI("ingen:root"); } static bool uri_is_path(const Raul::URI& uri) { - return uri.substr(0, root_uri().length()) == root_uri().str(); + return uri.substr(0, root_uri().length()) == root_uri(); } static Raul::Path uri_to_path(const Raul::URI& uri) { - return (uri == root_uri()) ? "/" : uri.substr(root_uri().length()); + return (uri == root_uri()) + ? Raul::Path("/") + : Raul::Path(uri.substr(root_uri().length())); } static Raul::URI path_to_uri(const Raul::Path& path) { - return Raul::URI(root_uri().str() + path.c_str()); + return Raul::URI(root_uri() + path.c_str()); } protected: |