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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-09-15 11:31:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-15 11:31:17 +0400
commitfed6b2bcb75a0d67d1b1266fd13d9a4b89dd1923 (patch)
tree7d2491890e92fb8e712c54ef897e79324a8150b3 /source/blender/editors/interface/view2d.c
parentb85056cbf4d0a0cc83db0120599318d368ea8f8c (diff)
code cleanup: remove paranoid/invalid NULL checks and also reduce some unneeded size_t -> int conversions.
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r--source/blender/editors/interface/view2d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c
index 0f1d1a24dcb..9c71746d045 100644
--- a/source/blender/editors/interface/view2d.c
+++ b/source/blender/editors/interface/view2d.c
@@ -851,7 +851,7 @@ void UI_view2d_totRect_set_resize(View2D *v2d, int width, int height, int resize
if (scroll & V2D_SCROLL_VERTICAL)
height -= V2D_SCROLL_HEIGHT;
- if (ELEM3(0, v2d, width, height)) {
+ if (ELEM(0, width, height)) {
if (G.debug & G_DEBUG)
printf("Error: View2D totRect set exiting: v2d=%p width=%d height=%d\n", (void *)v2d, width, height); // XXX temp debug info
return;