diff options
author | David Robillard <d@drobilla.net> | 2010-02-25 00:56:04 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-25 00:56:04 +0000 |
commit | 824d9d4457ccb1fc8183d6e94e0b4b4be35b198f (patch) | |
tree | ed77270902de85aa7966b956c80146ab279662ba /src | |
parent | c35f3f773e68c0e787a8436393475d3269c421c9 (diff) | |
download | ingen-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.cpp | 7 |
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()); } |