summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_software_surface.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-09 15:39:51 +0000
committerTom Hacohen <tom@stosb.com>2016-03-09 16:09:14 +0000
commitdf83edaeb6b10324868f28e8f1910147ba22e5e5 (patch)
tree4fb7590b244c86cd66c41bff04571bd4d4694d35 /src/lib/ector/software/ector_software_surface.c
parent6ac1fb78d855be27d28378a659887b693e5fb266 (diff)
Ector and eo suite: Semi automatically migrate to the new eo_add.
There were some issues with the migration that required manual intervention.
Diffstat (limited to 'src/lib/ector/software/ector_software_surface.c')
-rw-r--r--src/lib/ector/software/ector_software_surface.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/ector/software/ector_software_surface.c b/src/lib/ector/software/ector_software_surface.c
index f67b1947d2..551211fe8c 100644
--- a/src/lib/ector/software/ector_software_surface.c
+++ b/src/lib/ector/software/ector_software_surface.c
@@ -15,14 +15,15 @@ _ector_software_surface_ector_generic_surface_renderer_factory_new(Eo *obj,
15 Ector_Software_Surface_Data *pd EINA_UNUSED, 15 Ector_Software_Surface_Data *pd EINA_UNUSED,
16 const Eo_Class *type) 16 const Eo_Class *type)
17{ 17{
18 Eo *ret = NULL;
18 if (type == ECTOR_RENDERER_GENERIC_SHAPE_MIXIN) 19 if (type == ECTOR_RENDERER_GENERIC_SHAPE_MIXIN)
19 return eo_add(ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, NULL, ector_renderer_surface_set(eoid, obj)); 20 return eo_add(&ret, ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, NULL, ector_renderer_surface_set(ret, obj));
20 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_LINEAR_MIXIN) 21 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_LINEAR_MIXIN)
21 return eo_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS, NULL, ector_renderer_surface_set(eoid, obj)); 22 return eo_add(&ret, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS, NULL, ector_renderer_surface_set(ret, obj));
22 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN) 23 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN)
23 return eo_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, NULL, ector_renderer_surface_set(eoid, obj)); 24 return eo_add(&ret, ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, NULL, ector_renderer_surface_set(ret, obj));
24 else if (type == ECTOR_RENDERER_GENERIC_BUFFER_MIXIN) 25 else if (type == ECTOR_RENDERER_GENERIC_BUFFER_MIXIN)
25 return eo_add(ECTOR_RENDERER_SOFTWARE_BUFFER_CLASS, NULL, ector_renderer_surface_set(eoid, obj)); 26 return eo_add(&ret, ECTOR_RENDERER_SOFTWARE_BUFFER_CLASS, NULL, ector_renderer_surface_set(ret, obj));
26 ERR("Couldn't find class for type: %s\n", eo_class_name_get(type)); 27 ERR("Couldn't find class for type: %s\n", eo_class_name_get(type));
27 return NULL; 28 return NULL;
28} 29}