diff options
author | Tom Hacohen <tom@stosb.com> | 2015-05-19 11:41:27 +0100 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2015-05-20 13:03:24 +0100 |
commit | 6efbfe227aaaa24eda7bcb7df916d4daf0a74400 (patch) | |
tree | c96e166b7348c5e825aca2d4af084675172e0cec /src/lib/ector/software/ector_renderer_software_shape.c | |
parent | e7ed0bfcedcea87f8645107a8a0775f67227d7c1 (diff) | |
download | efl-6efbfe227aaaa24eda7bcb7df916d4daf0a74400.tar.gz |
Eo: Add a return value to eo_constructor().
From now on, constructors should return a value, usually the object
being worked on, or NULL (if the constructor failed). This can also
be used for implementing singletons, by just always returning the same
object from the constructor.
This is one of the final steps towards stabilizing Eo.
@feature
Diffstat (limited to 'src/lib/ector/software/ector_renderer_software_shape.c')
-rw-r--r-- | src/lib/ector/software/ector_renderer_software_shape.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ector/software/ector_renderer_software_shape.c b/src/lib/ector/software/ector_renderer_software_shape.c index 2e4fbea5aa..a91b80eb3b 100644 --- a/src/lib/ector/software/ector_renderer_software_shape.c +++ b/src/lib/ector/software/ector_renderer_software_shape.c @@ -362,14 +362,16 @@ _ector_renderer_software_shape_path_changed(void *data, Eo *obj EINA_UNUSED, con return EINA_TRUE; } -void +Eo * _ector_renderer_software_shape_eo_base_constructor(Eo *obj, Ector_Renderer_Software_Shape_Data *pd) { - eo_do_super(obj, ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, eo_constructor()); + obj = eo_do_super_ret(obj, ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, obj, eo_constructor()); pd->shape = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_SHAPE_MIXIN, obj); pd->base = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_BASE_CLASS, obj); eo_do(obj, eo_event_callback_add(EFL_GFX_PATH_CHANGED, _ector_renderer_software_shape_path_changed, pd)); + + return obj; } void |