cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d595149178f8d81a9c24883541b09a912e3c15a8

commit d595149178f8d81a9c24883541b09a912e3c15a8
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Wed Sep 23 12:33:49 2015 -0700

    edje: fix internal colorclass field
    
    Summary:
    Its value is never modified directly and should not be modifiled by mistake
    in future.
    
    @fix
    
    Reviewers: Hermet, raster, reutskiy.v.v, cedric
    
    Reviewed By: cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D3104
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/edje/edje_edit.c    | 2 +-
 src/lib/edje/edje_embryo.c  | 2 +-
 src/lib/edje/edje_private.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 908eee0..601c4ba 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -6448,7 +6448,7 @@ edje_edit_state_color_class_set(Evas_Object *obj, const 
char *part, const char *
      {
         if (strcmp(cc->name, color_class) == 0)
           {
-             pd->color_class = (char *)eina_stringshare_add(color_class);
+             pd->color_class = eina_stringshare_add(color_class);
              edje_object_calc_force(obj);
              return EINA_TRUE;
           }
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index b272594..2595603 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -2819,7 +2819,7 @@ _edje_embryo_fn_get_state_val(Embryo_Program *ep, 
Embryo_Cell *params)
 {
    Edje *ed = embryo_program_data_get(ep);
    Edje_Real_Part *rp;
-   char *s;
+   const char *s;
 
    /* we need at least 3 arguments */
    if (params[0] < (int)(sizeof(Embryo_Cell) * 3))
diff --git a/src/lib/edje/edje_private.h b/src/lib/edje/edje_private.h
index 8fec707..81f9fe2 100644
--- a/src/lib/edje/edje_private.h
+++ b/src/lib/edje/edje_private.h
@@ -1192,7 +1192,7 @@ struct _Edje_Part_Description_Common
    Edje_Position step; /* size stepping by n pixels, 0 = none */
    Edje_Aspect_Prefer aspect;
 
-   char      *color_class; /* how to modify the color */
+   const char      *color_class; /* how to modify the color */
    Edje_Color color;
    Edje_Color color2;
 

-- 


Reply via email to