From d3b945799176ad5b4c6739060a90bde810620feb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 28 Feb 2014 11:04:15 +1100 Subject: Code cleanup: style/warnings --- source/blender/bmesh/tools/bmesh_bevel.c | 2 +- source/blender/editors/interface/interface_ops.c | 5 +++-- source/blender/editors/screen/area.c | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'source') diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c index d6a758bb059..ba289bb4de4 100644 --- a/source/blender/bmesh/tools/bmesh_bevel.c +++ b/source/blender/bmesh/tools/bmesh_bevel.c @@ -1164,7 +1164,7 @@ static void get_profile_point(BevelParams *bp, const Profile *pro, int i, int n, } } -/* Calculcate the actual coordinate values for bndv's profile. +/* Calculate the actual coordinate values for bndv's profile. * This is only needed if bp->seg > 1. * Allocate the space for them if that hasn't been done already. * If bp->seg is not a power of 2, also need to calculate diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c index 9286b589983..370e2960709 100644 --- a/source/blender/editors/interface/interface_ops.c +++ b/source/blender/editors/interface/interface_ops.c @@ -230,8 +230,9 @@ static int unset_property_button_exec(bContext *C, wmOperator *UNUSED(op)) uiContextActiveProperty(C, &ptr, &prop, &index); /* if there is a valid property that is editable... */ - if (ptr.data && prop && RNA_property_editable(&ptr, prop) - /*&& RNA_property_is_idprop(prop)*/ && RNA_property_is_set(&ptr, prop)) + if (ptr.data && prop && RNA_property_editable(&ptr, prop) && + /* RNA_property_is_idprop(prop) && */ + RNA_property_is_set(&ptr, prop)) { RNA_property_unset(&ptr, prop); return operator_button_property_finish(C, &ptr, prop); diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index dbd12dbbf63..111e2f97f62 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -572,7 +572,9 @@ static void area_azone_initialize(wmWindow *win, bScreen *screen, ScrArea *sa) /* can't click on bottom corners on OS X, already used for resizing */ #ifdef __APPLE__ - if(!(sa->totrct.xmin == 0 && sa->totrct.ymin == 0) || WM_window_is_fullscreen(win)) + if (!(sa->totrct.xmin == 0 && sa->totrct.ymin == 0) || WM_window_is_fullscreen(win)) +#else + (void)win; #endif { /* set area action zones */ -- cgit v1.2.3