summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
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())
{
}