style cleanup: stop the style checker script from complaining about '!*ptr'
authorCampbell Barton <ideasman42@gmail.com>
Sat, 15 Dec 2012 02:48:25 +0000 (02:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 15 Dec 2012 02:48:25 +0000 (02:48 +0000)
source/blender/blenlib/intern/BLI_kdopbvh.c
source/blender/blenlib/intern/math_matrix.c
source/blender/editors/interface/interface_regions.c

index 6cf167b8823b3f397ccc853005b09aa35549f73d..55f67cedfc6e64d9937c8a0ff935fc8d80ed1a72 100644 (file)
@@ -1237,7 +1237,7 @@ static void dfs_find_nearest_begin(BVHNearestData *data, BVHNode *node)
 
 #define DEFAULT_FIND_NEAREST_HEAP_SIZE 1024
 
-#define NodeDistance_priority(a, b) ( (a).dist < (b).dist)
+#define NodeDistance_priority(a, b) ((a).dist < (b).dist)
 
 static void NodeDistance_push_heap(NodeDistance *heap, int heap_size)
 PUSH_HEAP_BODY(NodeDistance, NodeDistance_priority, heap, heap_size)
index a0c372c13dc61999dfea939a92ed04e9e34604b7..3a294769eb339a37b8f6f1afbee067b8d79f32fc 100644 (file)
@@ -1906,7 +1906,7 @@ void pseudoinverse_m4_m4(float Ainv[4][4], float A[4][4], float epsilon)
 void pseudoinverse_m3_m3(float Ainv[3][3], float A[3][3], float epsilon)
 {
        /* try regular inverse when possible, otherwise fall back to slow svd */
-       if(!invert_m3_m3(Ainv, A)) {
+       if (!invert_m3_m3(Ainv, A)) {
                float tmp[4][4], tmpinv[4][4];
 
                copy_m4_m3(tmp, A);
index 8acae65bf5f8f94ad9acd0c349c927c6c5d4143a..9df642f58b748e2a86af6f2329c3b4ced94d7376 100644 (file)
@@ -425,7 +425,7 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
 /*     IDProperty *prop;*/
        char buf[512];
        float fonth, fontw, aspect = but->block->aspect;
-       int winx, winy, ofsx, ofsy, w, h, a;
+       int winx /*, winy */, ofsx, ofsy, w, h, a;
        rctf rect_fl;
        rcti rect_i;
 
@@ -675,7 +675,7 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
        }
 
        winx = WM_window_pixels_x(win);
-       winy = WM_window_pixels_y(win);
+       // winy = WM_window_pixels_y(win);  /* UNUSED */
        //wm_window_get_size(win, &winx, &winy);
 
        if (rect_i.xmax > winx) {
@@ -1109,7 +1109,7 @@ ARegion *ui_searchbox_create(bContext *C, ARegion *butregion, uiBut *but)
        float aspect = but->block->aspect;
        rctf rect_fl;
        rcti rect_i;
-       int winx, winy, ofsx, ofsy;
+       int winx /*, winy */, ofsx, ofsy;
        int i;
        
        /* create area region */
@@ -1191,7 +1191,7 @@ ARegion *ui_searchbox_create(bContext *C, ARegion *butregion, uiBut *but)
                BLI_rcti_translate(&rect_i, butregion->winrct.xmin, butregion->winrct.ymin);
 
                winx = WM_window_pixels_x(win);
-               winy = WM_window_pixels_y(win);
+               // winy = WM_window_pixels_y(win);  /* UNUSED */
                //wm_window_get_size(win, &winx, &winy);
                
                if (rect_i.xmax > winx) {