summaryrefslogtreecommitdiffstats
path: root/src/shared/Builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/Builder.cpp')
-rw-r--r--src/shared/Builder.cpp9
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);
}
}