edje_calc: Document some intended fall through cases in switch-case
authorStefan Schmidt <s.schmidt@samsung.com>
Fri, 16 May 2014 13:00:10 +0000 (15:00 +0200)
committerStefan Schmidt <s.schmidt@samsung.com>
Fri, 16 May 2014 13:00:10 +0000 (15:00 +0200)
We share code here for different types. Make a note and also marked them as
false positive in coverity.

CID 1039377, CID 1039376

src/lib/edje/edje_calc.c

index aa67620..1bf7816 100644 (file)
@@ -3592,6 +3592,7 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
               break;
            case EDJE_PART_TYPE_TEXT:
               p3->type.text.size = INTP(p1->type.text.size, p2->type.text.size, pos);
+              /* no break as we share code with the TEXTBLOCK type here. Intended fall-through */
            case EDJE_PART_TYPE_TEXTBLOCK:
               p3->type.text.color2.r = INTP(p1->type.text.color2.r, p2->type.text.color2.r, pos2);
               p3->type.text.color2.g = INTP(p1->type.text.color2.g, p2->type.text.color2.g, pos2);
@@ -3774,6 +3775,7 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
 
                    evas_object_image_scale_hint_set(ep->object,
                                                     img_desc->image.scale_hint);
+                   /* No break here as we share the rest of the code for all types. Intended fall-through*/
                 }
            case EDJE_PART_TYPE_PROXY:
            case EDJE_PART_TYPE_RECTANGLE: