From 3c0ed6b66b6e99c68fc01c86b5796a55d74a5977 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Mar 2019 17:44:36 +0100 Subject: WIP: Port to serd1 --- ingen/paths.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ingen/paths.hpp') diff --git a/ingen/paths.hpp b/ingen/paths.hpp index 05496114..fa6c9aff 100644 --- a/ingen/paths.hpp +++ b/ingen/paths.hpp @@ -29,12 +29,12 @@ inline URI main_uri() { return URI("ingen:/main"); } inline bool uri_is_path(const URI& uri) { - const size_t root_len = main_uri().string().length(); + const size_t root_len = main_uri().length(); if (uri == main_uri()) { return true; } else { - return uri.string().substr(0, root_len + 1) == - main_uri().string() + "/"; + return uri.str().substr(0, root_len + 1) == + main_uri().str() + "/"; } } -- cgit v1.2.1