Cleanup: style

This commit is contained in:
2015-03-14 12:10:09 +11:00
parent 6e17420548
commit 3824e0f124
6 changed files with 7 additions and 7 deletions

View File

@@ -908,7 +908,7 @@ static void graph_draw_driver_debug(bAnimContext *ac, ID *id, FCurve *fcu)
glPointSize(7.0);
glBegin(GL_POINTS);
glVertex2f(x, y);
glVertex2f(x, y);
glEnd();
/* inner frame */
@@ -916,7 +916,7 @@ static void graph_draw_driver_debug(bAnimContext *ac, ID *id, FCurve *fcu)
glPointSize(3.0);
glBegin(GL_POINTS);
glVertex2f(x, y);
glVertex2f(x, y);
glEnd();
glPointSize(1.0f);

View File

@@ -143,7 +143,7 @@ struct ImBuf *imb_bmp_decode(unsigned char *mem, size_t size, int flags, char co
mem += BMP_FILEHEADER_SIZE;
}
else {
return 0;
return NULL;
}
/* for systems where an int needs to be 4 bytes aligned */

View File

@@ -72,7 +72,7 @@ static void rna_Image_save_render(Image *image, bContext *C, ReportList *reports
}
if (scene) {
ImageUser iuser = {0};
ImageUser iuser = {NULL};
void *lock;
iuser.scene = scene;

View File

@@ -94,7 +94,7 @@ static int rna_use_shadow_get(PointerRNA *ptr)
Lamp *la = (Lamp *)ptr->data;
if (la->type == LA_SPOT) {
return (la->mode & (LA_SHAD_BUF|LA_SHAD_RAY)) != 0;
return (la->mode & (LA_SHAD_BUF | LA_SHAD_RAY)) != 0;
}
else {
return (la->mode & LA_SHAD_RAY) != 0;

View File

@@ -101,7 +101,7 @@ void RNA_api_space_text(StructRNA *srna)
RNA_def_property_flag(parm, PROP_REQUIRED);
parm = RNA_def_int(func, "column", 0, INT_MIN, INT_MAX, "Column", "Column index", 0, INT_MAX);
RNA_def_property_flag(parm, PROP_REQUIRED);
parm = RNA_def_int_array(func, "result", 2, 0, -1, INT_MAX, "", "Region coordinates", -1, INT_MAX);
parm = RNA_def_int_array(func, "result", 2, NULL, -1, INT_MAX, "", "Region coordinates", -1, INT_MAX);
RNA_def_function_output(func, parm);
}

View File

@@ -4293,7 +4293,7 @@ static void radial_control_cancel(bContext *C, wmOperator *op)
{
RadialControl *rc = op->customdata;
wmWindowManager *wm = CTX_wm_manager(C);
ScrArea *sa = CTX_wm_area(C);
ScrArea *sa = CTX_wm_area(C);
if (rc->dial) {
MEM_freeN(rc->dial);