summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-03-04 03:52:08 +0000
committerDavid Robillard <d@drobilla.net>2010-03-04 03:52:08 +0000
commit3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b (patch)
tree004aed4a43706a390b7732bbcd7c955d55b42f5d /src/client
parente48334e90bad338e6d83eca109702dedbf22f3e1 (diff)
downloadingen-3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b.tar.gz
ingen-3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b.tar.bz2
ingen-3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b.zip
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
Diffstat (limited to 'src/client')
-rw-r--r--src/client/ClientStore.cpp2
-rw-r--r--src/client/ObjectModel.cpp2
2 files changed, 2 insertions, 2 deletions
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<Resource>
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())
{
}