From 80fee5c311fdbdeda573ec81f59158a5fc87d0a1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Aug 2012 04:23:23 +0000 Subject: Update for latest Raul. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4687 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/GraphObject.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ingen/GraphObject.hpp') 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: -- cgit v1.2.1