diff options
author | David Robillard <d@drobilla.net> | 2019-03-09 17:44:36 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 15:54:05 +0200 |
commit | cc672193b82a4b314d59aa2e572a5e9667c34f1b (patch) | |
tree | 55796d4b55304ed306acd417ebc4b39c862563fd /ingen/paths.hpp | |
parent | f48f9d69a541d758dc9928c0c89eae46819e660f (diff) | |
download | ingen-cc672193b82a4b314d59aa2e572a5e9667c34f1b.tar.gz ingen-cc672193b82a4b314d59aa2e572a5e9667c34f1b.tar.bz2 ingen-cc672193b82a4b314d59aa2e572a5e9667c34f1b.zip |
WIP: Port to serd1
Diffstat (limited to 'ingen/paths.hpp')
-rw-r--r-- | ingen/paths.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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() + "/"; } } |