From 3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 4 Mar 2010 03:52:08 +0000 Subject: Remove Raul::Path::root, Raul::Path::prefix, and Raul:Path::scheme from public API. Add ability to modify root path from application code (before any paths are created). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2514 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/ClientStore.cpp | 2 +- src/client/ObjectModel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp index 2b7bb7f7..fd73c4b5 100644 --- a/src/client/ClientStore.cpp +++ b/src/client/ClientStore.cpp @@ -177,7 +177,7 @@ ClientStore::object(const Path& path) SharedPtr ClientStore::resource(const URI& uri) { - if (uri.scheme() == Path::scheme && Path::is_valid(uri.str())) + if (Path::is_path(uri)) return object(uri.str()); else return plugin(uri); diff --git a/src/client/ObjectModel.cpp b/src/client/ObjectModel.cpp index ce511af6..a2423ab8 100644 --- a/src/client/ObjectModel.cpp +++ b/src/client/ObjectModel.cpp @@ -31,7 +31,7 @@ ObjectModel::ObjectModel(const Path& path) : ResourceImpl(path) , _meta(ResourceImpl::meta_uri(path)) , _path(path) - , _symbol((path == Path::root) ? "root" : path.symbol()) + , _symbol((path == Path::root()) ? "root" : path.symbol()) { } -- cgit v1.2.1