diff options
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_add.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/meshtools.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/mesh/editmesh_add.c b/source/blender/editors/mesh/editmesh_add.c index 5dd1b1227a3..da3f7e3f916 100644 --- a/source/blender/editors/mesh/editmesh_add.c +++ b/source/blender/editors/mesh/editmesh_add.c @@ -1312,7 +1312,7 @@ static void make_prim(Object *obedit, int type, float mat[4][4], int tot, int se /* ********* add primitive operators ************* */ -static char *get_mesh_defname(int type) +static const char *get_mesh_defname(int type) { switch (type) { case PRIM_PLANE: return "Plane"; diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 8adf504b7fd..6b101c0c92f 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -1194,7 +1194,7 @@ static void delete_mesh(EditMesh *em, wmOperator *op, int event) EditVert *eve,*nextve; EditEdge *eed,*nexted; int count; - char *str="Erase"; + const char *str="Erase"; if(event<1) return; diff --git a/source/blender/editors/mesh/meshtools.c b/source/blender/editors/mesh/meshtools.c index 820e287e945..8b12b4b8872 100644 --- a/source/blender/editors/mesh/meshtools.c +++ b/source/blender/editors/mesh/meshtools.c @@ -1192,9 +1192,9 @@ float *editmesh_get_mirror_uv(int axis, float *uv, float *mirrCent, float *face_ } #endif -static unsigned int mirror_facehash(void *ptr) +static unsigned int mirror_facehash(const void *ptr) { - MFace *mf= ptr; + const MFace *mf= ptr; int v0, v1; if(mf->v4) { @@ -1233,7 +1233,7 @@ static int mirror_facerotation(MFace *a, MFace *b) return -1; } -static int mirror_facecmp(void *a, void *b) +static int mirror_facecmp(const void *a, const void *b) { return (mirror_facerotation((MFace*)a, (MFace*)b) == -1); } |