src/core/object.cc
changeset 2522 7c9d1c314beb
parent 2520 a4896ebf6e1d
child 2523 58182a1561cc
--- a/src/core/object.cc	Sat Mar 01 19:55:16 2008 +0100
+++ b/src/core/object.cc	Sat Mar 01 20:20:14 2008 +0100
@@ -809,19 +809,21 @@
   bool ok = DoSet (&info, value);
   return ok;
 }
-void 
+bool
 AttributeList::SetWithTid (TypeId tid, std::string name, Attribute value)
 {
   struct TypeId::AttributeInfo info;
   tid.LookupAttributeByName (name, &info);
-  DoSet (&info, value);
+  bool ok = DoSet (&info, value);
+  return ok;
 }
-void 
+bool
 AttributeList::SetWithTid (TypeId tid, uint32_t position, Attribute value)
 {
   struct TypeId::AttributeInfo info;
   tid.LookupAttributeByPosition (position, &info);
-  DoSet (&info, value);
+  bool ok = DoSet (&info, value);
+  return ok;
 }
 
 void