summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-11-22 17:14:16 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-11-30 14:58:19 -0800
commit221600ea101fc5a0466a9bba9276350e53844564 (patch)
tree8d0c78f5495c02d5dd682dd68da3a4fbf012617c
parent1c238298ee1f191a54cbc2e52e700ef3c9b07292 (diff)
downloadefl-221600ea101fc5a0466a9bba9276350e53844564.tar.gz
eio: simplify code by using helper that generate future directly.
The new helper help replace call to eina_future_resolved and eina_future_rejected with a scheduler lookup to just one function call. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7339
-rw-r--r--src/lib/eio/eio_model.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index 529582ffba..309af24a01 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -696,14 +696,14 @@ _eio_model_efl_model_property_set(Eo *obj,
}
else
{
- f = eina_future_resolved(efl_loop_future_scheduler_get(obj),
+ f = efl_loop_future_resolved(obj,
eina_value_string_init(pd->path));
}
return efl_future_then(obj, f);
on_error:
- return eina_future_rejected(efl_loop_future_scheduler_get(obj), err);
+ return efl_loop_future_rejected(obj, err);
}
static void