Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-28 04:04:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-28 04:04:15 +0400
commitd3b945799176ad5b4c6739060a90bde810620feb (patch)
treed82e8ede869f32416be8a9396f2ff4d3579e5cd0 /source
parent11f3fc0efd02d01f0eb1f09c7088e8818b515809 (diff)
Code cleanup: style/warnings
Diffstat (limited to 'source')
-rw-r--r--source/blender/bmesh/tools/bmesh_bevel.c2
-rw-r--r--source/blender/editors/interface/interface_ops.c5
-rw-r--r--source/blender/editors/screen/area.c4
3 files changed, 7 insertions, 4 deletions
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 */