diff options
author | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
commit | 19928bb583e72802746b89e322f71ecc0fcb7427 (patch) | |
tree | 95912dc84d8c9dcf57939398514feaf148c1cd63 /src/shared/Builder.cpp | |
parent | 96f839e64de70a23210847e322d24690299287fe (diff) | |
download | ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.gz ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.bz2 ingen-19928bb583e72802746b89e322f71ecc0fcb7427.zip |
The great ID refactoring of 2009.
Path is now actually URI (scheme path: for now).
Therefore ingen nodes and such live in the same namespace as ... well, everything.
Including plugins.
Thar be profit, laddies.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1992 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared/Builder.cpp')
-rw-r--r-- | src/shared/Builder.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/shared/Builder.cpp b/src/shared/Builder.cpp index 9da71a09..d1ddee32 100644 --- a/src/shared/Builder.cpp +++ b/src/shared/Builder.cpp @@ -41,10 +41,8 @@ Builder::build(SharedPtr<const GraphObject> object) { SharedPtr<const Patch> patch = PtrCast<const Patch>(object); if (patch) { - if (object->path() != "/") { - const string path_str = object->path(); - _interface.new_patch(path_str, patch->internal_polyphony()); - } + if (!object->path().is_root()) + _interface.new_patch(object->path(), patch->internal_polyphony()); build_object(object); /*for (Patch::Connections::const_iterator i = patch->connections().begin(); @@ -95,9 +93,8 @@ Builder::build_object(SharedPtr<const GraphObject> object) for (GraphObject::Properties::const_iterator i = object->properties().begin(); i != object->properties().end(); ++i) { - if (object->path() == "/") + if (object->path().is_root()) continue; - string path_str = object->path(); _interface.set_property(object->path(), i->first, i->second); } } |