summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.c
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 /src/lib/eio/eio_model.c
parent1c238298ee1f191a54cbc2e52e700ef3c9b07292 (diff)
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
Diffstat (limited to 'src/lib/eio/eio_model.c')
-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 529582f..309af24 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,
696 } 696 }
697 else 697 else
698 { 698 {
699 f = eina_future_resolved(efl_loop_future_scheduler_get(obj), 699 f = efl_loop_future_resolved(obj,
700 eina_value_string_init(pd->path)); 700 eina_value_string_init(pd->path));
701 } 701 }
702 702
703 return efl_future_then(obj, f); 703 return efl_future_then(obj, f);
704 704
705 on_error: 705 on_error:
706 return eina_future_rejected(efl_loop_future_scheduler_get(obj), err); 706 return efl_loop_future_rejected(obj, err);
707} 707}
708 708
709static void 709static void