diff options
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 4 | ||||
-rw-r--r-- | source/blender/editors/curve/editfont.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 50152b02993..61a9a586531 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -897,7 +897,7 @@ static void calc_shapeKeys(Object *obedit) } else { int index; - float *curofp; + const float *curofp; if (oldkey) { if (nu->bezt) { @@ -1111,7 +1111,7 @@ static void curve_rename_fcurves(Curve *cu, ListBase *orig_curves) next = fcu->next; if (!strncmp(fcu->rna_path, "splines", 7)) { - char *ch = strchr(fcu->rna_path, '.'); + const char *ch = strchr(fcu->rna_path, '.'); if (ch && (!strncmp(ch, ".bezier_points", 14) || !strncmp(ch, ".points", 7))) fcurve_remove(adt, orig_curves, fcu); diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c index de067d68573..1bcdbadde7a 100644 --- a/source/blender/editors/curve/editfont.c +++ b/source/blender/editors/curve/editfont.c @@ -1790,7 +1790,7 @@ static int font_open_exec(bContext *C, wmOperator *op) static int open_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) { VFont *vfont = NULL; - char *path; + const char *path; PointerRNA idptr; PropertyPointerRNA *pprop; @@ -1879,7 +1879,7 @@ static void undoFont_to_editFont(void *strv, void *ecu, void *UNUSED(obdata)) { Curve *cu = (Curve *)ecu; EditFont *ef = cu->editfont; - char *str = strv; + const char *str = strv; ef->pos = *((short *)str); ef->len = *((short *)(str + 2)); |