Eobj: Fixed a possible inconsistency in constructor error detection.
authortasn <tasn>
Thu, 12 Apr 2012 14:37:52 +0000 (14:37 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 12 Apr 2012 14:37:52 +0000 (14:37 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@70146 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

lib/eobj.c

index a4269d8..ce83de3 100644 (file)
@@ -713,7 +713,7 @@ eobj_add(const Eobj_Class *klass, Eobj *parent)
 
    _eobj_kls_itr_init(obj, EOBJ_NOOP);
    eobj_class_constructor(obj, klass);
-   if (eobj_generic_data_get(obj, CONSTRUCT_ERROR_KEY))
+   if (eobj_constructor_error_get(obj))
      {
         ERR("Type '%s' - One of the object constructors have failed.", klass->desc->name);
         goto fail;
@@ -748,7 +748,7 @@ eobj_unref(Eobj *obj)
         const Eobj_Class *klass = eobj_class_get(obj);
         _eobj_kls_itr_init(obj, EOBJ_NOOP);
         eobj_class_destructor(obj, klass);
-        if (eobj_generic_data_get(obj, CONSTRUCT_ERROR_KEY))
+        if (eobj_constructor_error_get(obj))
           {
              ERR("Type '%s' - One of the object destructors have failed.", klass->desc->name);
           }