summaryrefslogtreecommitdiff
path: root/src/benchmarks/eo/eo_bench_eo_do.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks/eo/eo_bench_eo_do.c')
-rw-r--r--src/benchmarks/eo/eo_bench_eo_do.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
index ec69bf3145..2783b91b3c 100644
--- a/src/benchmarks/eo/eo_bench_eo_do.c
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -10,7 +10,7 @@ static void
bench_eo_do_simple(int request)
{
int i;
- Eo *obj = efl_add(SIMPLE_CLASS, NULL);
+ Eo *obj = efl_add_ref(SIMPLE_CLASS, NULL);
for (i = 0 ; i < request ; i++)
{
simple_a_set(obj, i);
@@ -23,8 +23,8 @@ static void
bench_eo_do_two_objs(int request)
{
int i;
- Eo *obj = efl_add(SIMPLE_CLASS, NULL);
- Eo *obj2 = efl_add(SIMPLE_CLASS, NULL);
+ Eo *obj = efl_add_ref(SIMPLE_CLASS, NULL);
+ Eo *obj2 = efl_add_ref(SIMPLE_CLASS, NULL);
for (i = 0 ; i < request ; i++)
{
simple_a_set(obj, i);
@@ -39,8 +39,8 @@ static void
bench_eo_do_two_objs_growing_stack(int request)
{
int i;
- Eo *obj = efl_add(SIMPLE_CLASS, NULL);
- Eo *obj2 = efl_add(SIMPLE_CLASS, NULL);
+ Eo *obj = efl_add_ref(SIMPLE_CLASS, NULL);
+ Eo *obj2 = efl_add_ref(SIMPLE_CLASS, NULL);
for (i = 0 ; i < request ; i++)
{
simple_other_call(obj, obj2, 20);
@@ -83,7 +83,7 @@ bench_eo_do_super(int request)
cur_klass = efl_class_new(&class_desc, SIMPLE_CLASS, NULL);
int i;
- Eo *obj = efl_add(cur_klass, NULL);
+ Eo *obj = efl_add_ref(cur_klass, NULL);
for (i = 0 ; i < request ; i++)
{
simple_a_set(obj, i);