[Swfdec] libswfdec/swfdec_as_object.c
Benjamin Otte
company at kemper.freedesktop.org
Sun Aug 19 12:23:47 PDT 2007
libswfdec/swfdec_as_object.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
New commits:
diff-tree 1ce09b255198bdb2908cbc251e07bee76998e6a1 (from 4e35fceb28469c2bc9ee49c9ec71573d6df8861e)
Author: Benjamin Otte <otte at gnome.org>
Date: Sun Aug 19 21:15:54 2007 +0200
use set_variable_and_flags() instead of doing a seperate set_flags() calls
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 811be98..bfe02f5 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -775,8 +775,7 @@ swfdec_as_object_add_function (SwfdecAsO
name = swfdec_as_context_get_string (object->context, name);
SWFDEC_AS_VALUE_SET_OBJECT (&val, SWFDEC_AS_OBJECT (function));
/* FIXME: I'd like to make sure no such property exists yet */
- swfdec_as_object_set_variable (object, name, &val);
- swfdec_as_object_set_variable_flags (object, name, SWFDEC_AS_VARIABLE_HIDDEN);
+ swfdec_as_object_set_variable_and_flags (object, name, &val, SWFDEC_AS_VARIABLE_HIDDEN);
return function;
}
@@ -959,12 +958,11 @@ swfdec_as_object_set_constructor (Swfdec
proto = object->context->Object_prototype;
}
SWFDEC_AS_VALUE_SET_OBJECT (&val, proto);
- swfdec_as_object_set_variable (object, SWFDEC_AS_STR___proto__, &val);
- swfdec_as_object_set_variable_flags (object, SWFDEC_AS_STR___proto__,
- SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
+ swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR___proto__,
+ &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
SWFDEC_AS_VALUE_SET_OBJECT (&val, construct);
- swfdec_as_object_set_variable (object, SWFDEC_AS_STR___constructor__, &val);
- swfdec_as_object_set_variable_flags (object, SWFDEC_AS_STR___constructor__, SWFDEC_AS_VARIABLE_HIDDEN);
+ swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR___constructor__,
+ &val, SWFDEC_AS_VARIABLE_HIDDEN);
}
/**
More information about the Swfdec
mailing list