diff options
author | David Robillard <d@drobilla.net> | 2010-03-04 03:52:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-03-04 03:52:08 +0000 |
commit | 3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b (patch) | |
tree | 004aed4a43706a390b7732bbcd7c955d55b42f5d /src/engine/events | |
parent | e48334e90bad338e6d83eca109702dedbf22f3e1 (diff) | |
download | ingen-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/engine/events')
-rw-r--r-- | src/engine/events/RequestMetadata.cpp | 2 | ||||
-rw-r--r-- | src/engine/events/SetMetadata.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/events/RequestMetadata.cpp b/src/engine/events/RequestMetadata.cpp index 4d879298..69c5b271 100644 --- a/src/engine/events/RequestMetadata.cpp +++ b/src/engine/events/RequestMetadata.cpp @@ -59,7 +59,7 @@ RequestMetadata::RequestMetadata(Engine& engine, void RequestMetadata::pre_process() { - const bool is_object = (_uri.scheme() == Path::scheme && Path::is_valid(_uri.str())); + const bool is_object = Path::is_path(_uri); if (_request->client()) { if (is_object) _resource = _engine.engine_store()->find_object(Path(_uri.str())); diff --git a/src/engine/events/SetMetadata.cpp b/src/engine/events/SetMetadata.cpp index a44261d4..6b0e5832 100644 --- a/src/engine/events/SetMetadata.cpp +++ b/src/engine/events/SetMetadata.cpp @@ -99,7 +99,7 @@ SetMetadata::pre_process() { typedef Properties::const_iterator iterator; - bool is_graph_object = (_subject.scheme() == Path::scheme && Path::is_valid(_subject.str())); + const bool is_graph_object = Path::is_path(_subject); _object = is_graph_object ? _engine.engine_store()->find_object(Path(_subject.str())) |