From 37026b12ec1047dd5f4637ad281f108a7963af83 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 5 Feb 2014 22:36:15 +1100 Subject: Code cleanup: use bool for static methods --- source/blender/bmesh/intern/bmesh_interp.c | 4 ++-- source/blender/bmesh/operators/bmo_hull.c | 2 +- source/blender/bmesh/operators/bmo_smooth_laplacian.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/bmesh') diff --git a/source/blender/bmesh/intern/bmesh_interp.c b/source/blender/bmesh/intern/bmesh_interp.c index 182826b58bf..2afb9c9cdee 100644 --- a/source/blender/bmesh/intern/bmesh_interp.c +++ b/source/blender/bmesh/intern/bmesh_interp.c @@ -355,8 +355,8 @@ static void mdisp_axis_from_quad(float v1[3], float v2[3], float UNUSED(v3[3]), /* tl is loop to project onto, l is loop whose internal displacement, co, is being * projected. x and y are location in loop's mdisps grid of point co. */ -static int mdisp_in_mdispquad(BMLoop *l, BMLoop *tl, float p[3], float *x, float *y, - int res, float axis_x[3], float axis_y[3]) +static bool mdisp_in_mdispquad(BMLoop *l, BMLoop *tl, float p[3], float *x, float *y, + int res, float axis_x[3], float axis_y[3]) { float v1[3], v2[3], c[3], v3[3], v4[3], e1[3], e2[3]; float eps = FLT_EPSILON * 4000; diff --git a/source/blender/bmesh/operators/bmo_hull.c b/source/blender/bmesh/operators/bmo_hull.c index 1737e27c84a..0a86a84d55b 100644 --- a/source/blender/bmesh/operators/bmo_hull.c +++ b/source/blender/bmesh/operators/bmo_hull.c @@ -535,7 +535,7 @@ static void hull_from_bullet(BMesh *bm, BMOperator *op, } /* Check that there are at least three vertices in the input */ -static int hull_num_input_verts_is_ok(BMOperator *op) +static bool hull_num_input_verts_is_ok(BMOperator *op) { BMOIter oiter; BMVert *v; diff --git a/source/blender/bmesh/operators/bmo_smooth_laplacian.c b/source/blender/bmesh/operators/bmo_smooth_laplacian.c index c36c7467b89..e6321341950 100644 --- a/source/blender/bmesh/operators/bmo_smooth_laplacian.c +++ b/source/blender/bmesh/operators/bmo_smooth_laplacian.c @@ -67,7 +67,7 @@ struct BLaplacianSystem { typedef struct BLaplacianSystem LaplacianSystem; static float cotan_weight(float *v1, float *v2, float *v3); -static int vert_is_boundary(BMVert *v); +static bool vert_is_boundary(BMVert *v); static LaplacianSystem *init_laplacian_system(int a_numEdges, int a_numFaces, int a_numVerts); static void init_laplacian_matrix(LaplacianSystem *sys); static void delete_laplacian_system(LaplacianSystem *sys); @@ -392,7 +392,7 @@ static float cotan_weight(float *v1, float *v2, float *v3) return dot_v3v3(a, b) / clen; } -static int vert_is_boundary(BMVert *v) +static bool vert_is_boundary(BMVert *v) { BMEdge *ed; BMFace *f; -- cgit v1.2.3