summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-25 00:56:04 +0000
committerDavid Robillard <d@drobilla.net>2010-02-25 00:56:04 +0000
commit824d9d4457ccb1fc8183d6e94e0b4b4be35b198f (patch)
treeed77270902de85aa7966b956c80146ab279662ba /src
parentc35f3f773e68c0e787a8436393475d3269c421c9 (diff)
downloadingen-824d9d4457ccb1fc8183d6e94e0b4b4be35b198f.tar.gz
ingen-824d9d4457ccb1fc8183d6e94e0b4b4be35b198f.tar.bz2
ingen-824d9d4457ccb1fc8183d6e94e0b4b4be35b198f.zip
Use put instead of looped indidivual property sets.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2488 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/shared/Builder.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/shared/Builder.cpp b/src/shared/Builder.cpp
index c8d48479..820a26b3 100644
--- a/src/shared/Builder.cpp
+++ b/src/shared/Builder.cpp
@@ -96,11 +96,8 @@ void
Builder::build_object(SharedPtr<const GraphObject> object)
{
typedef GraphObject::Properties::const_iterator iterator;
- iterator i = object->meta().properties().begin();
- for (; i != object->meta().properties().end(); ++i)
- _interface.set_property(object->meta().uri(), i->first, i->second);
- for (i = object->properties().begin(); i != object->properties().end(); ++i)
- _interface.set_property(object->path(), i->first, i->second);
+ _interface.put(object->meta().uri(), object->meta().properties());
+ _interface.put(object->uri(), object->properties());
}