diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-12-01 16:54:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-12-01 16:54:13 +0300 |
commit | 3bd46904beaab00e06fde99c37c2e5946a4f4a7c (patch) | |
tree | cc1215df4ce0e977885d377f220d2104cc60675d /source/blender | |
parent | 22ecceec4a0a5e26d06f69d35428a82a91a049c7 (diff) |
Cleanup: warnings
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/armature/armature_skinning.c | 2 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_select.c | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/editors/armature/armature_skinning.c b/source/blender/editors/armature/armature_skinning.c index 9ae9327462f..3126cca7457 100644 --- a/source/blender/editors/armature/armature_skinning.c +++ b/source/blender/editors/armature/armature_skinning.c @@ -280,7 +280,7 @@ static void add_verts_to_dgroups(ReportList *reports, Scene *scene, Object *ob, if (numbones == 0) return; - if (BKE_object_defgroup_data_create(ob->data) == false) + if (BKE_object_defgroup_data_create(ob->data) == NULL) return; /* create an array of pointer to bones that are skinnable diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c index 2be5b8dc188..29de5c414d8 100644 --- a/source/blender/editors/gpencil/gpencil_select.c +++ b/source/blender/editors/gpencil/gpencil_select.c @@ -489,7 +489,7 @@ static int gpencil_circle_select_exec(bContext *C, wmOperator *op) const int gesture_mode = RNA_int_get(op->ptr, "gesture_mode"); const bool select = (gesture_mode == GESTURE_MODAL_SELECT); - GP_SpaceConversion gsc = {0}; + GP_SpaceConversion gsc = {NULL}; rcti rect = {0}; /* for bounding rect around circle (for quicky intersection testing) */ bool changed = false; @@ -562,7 +562,7 @@ static int gpencil_border_select_exec(bContext *C, wmOperator *op) const bool select = (gesture_mode == GESTURE_MODAL_SELECT); const bool extend = RNA_boolean_get(op->ptr, "extend"); - GP_SpaceConversion gsc = {0}; + GP_SpaceConversion gsc = {NULL}; rcti rect = {0}; bool changed = false; @@ -676,7 +676,7 @@ static int gpencil_select_exec(bContext *C, wmOperator *op) int location[2] = {0}; int mx, my; - GP_SpaceConversion gsc = {0}; + GP_SpaceConversion gsc = {NULL}; bGPDstroke *hit_stroke = NULL; bGPDspoint *hit_point = NULL; @@ -835,5 +835,3 @@ void GPENCIL_OT_select(wmOperatorType *ot) } /* ********************************************** */ - -
\ No newline at end of file |