diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-03 11:55:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-03 12:35:44 +0400 |
commit | d900f5be55d0812eb5c7dfd3ea47020c3edafd41 (patch) | |
tree | 7d5035e3dbafdcd4988e7ed57068e48c951a989a /source/blender/blenlib/intern | |
parent | a948ae2c5167c49819241572d3aacb4e4bf5b6d7 (diff) |
Code cleanup: use bools where possible
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/graph.c | 10 | ||||
-rw-r--r-- | source/blender/blenlib/intern/uvproject.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/graph.c b/source/blender/blenlib/intern/graph.c index 9ec183ab9a2..e7651b70a5b 100644 --- a/source/blender/blenlib/intern/graph.c +++ b/source/blender/blenlib/intern/graph.c @@ -164,7 +164,7 @@ void BLI_freeAdjacencyList(BGraph *graph) } } -int BLI_hasAdjacencyList(BGraph *graph) +bool BLI_hasAdjacencyList(BGraph *graph) { BNode *node; @@ -317,9 +317,9 @@ void BLI_ReflagSubgraph(BGraph *graph, int old_subgraph, int new_subgraph) /*************************************** CYCLE DETECTION ***********************************************/ -static int detectCycle(BNode *node, BArc *src_arc) +static bool detectCycle(BNode *node, BArc *src_arc) { - int value = 0; + bool value = false; if (node->flag == 0) { int i; @@ -343,10 +343,10 @@ static int detectCycle(BNode *node, BArc *src_arc) return value; } -int BLI_isGraphCyclic(BGraph *graph) +bool BLI_isGraphCyclic(BGraph *graph) { BNode *node; - int value = 0; + bool value = false; /* NEED TO CHECK IF ADJACENCY LIST EXIST */ diff --git a/source/blender/blenlib/intern/uvproject.c b/source/blender/blenlib/intern/uvproject.c index a741c9858c3..730ab01bfd2 100644 --- a/source/blender/blenlib/intern/uvproject.c +++ b/source/blender/blenlib/intern/uvproject.c @@ -39,7 +39,7 @@ typedef struct ProjCameraInfo { float shiftx, shifty; float rotmat[4][4]; float caminv[4][4]; - short do_persp, do_pano, do_rotmat; + bool do_persp, do_pano, do_rotmat; } ProjCameraInfo; void BLI_uvproject_from_camera(float target[2], float source[3], ProjCameraInfo *uci) |