src/core/attribute-accessor-helper.h
changeset 2965 4b28e9740e3b
parent 2950 9e20fb862cd8
child 3182 61fe7fe81ebd
--- a/src/core/attribute-accessor-helper.h	Mon Apr 14 16:19:17 2008 -0700
+++ b/src/core/attribute-accessor-helper.h	Thu Apr 17 13:42:25 2008 -0700
@@ -48,8 +48,8 @@
 public:
   AccessorHelper () {}
 
-  virtual bool Set (ObjectBase * object, Attribute val) const {
-    const U *value = val.DynCast<const U*> ();
+  virtual bool Set (ObjectBase * object, const AttributeValue & val) const {
+    const U *value = dynamic_cast<const U *> (&val);
     if (value == 0)
       {
 	return false;
@@ -62,8 +62,8 @@
     return DoSet (obj, value);
   }
 
-  virtual bool Get (const ObjectBase * object, Attribute val) const {
-    U *value = val.DynCast<U*> ();
+  virtual bool Get (const ObjectBase * object, AttributeValue &val) const {
+    U *value = dynamic_cast<U *> (&val);
     if (value == 0)
       {
 	return false;
@@ -76,7 +76,6 @@
     return DoGet (obj, value);
   }
 
-
 private:
   virtual bool DoSet (T *object, const U *v) const = 0;
   virtual bool DoGet (const T *object, U *v) const = 0;