summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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());
}