Cleanup: suspicious use of commas
This commit is contained in:
@@ -1104,7 +1104,7 @@ setOrder(
|
||||
xev.xclient.data.l[3] = 0;
|
||||
xev.xclient.data.l[4] = 0;
|
||||
|
||||
root = RootWindow(m_display, m_visualInfo->screen),
|
||||
root = RootWindow(m_display, m_visualInfo->screen);
|
||||
eventmask = SubstructureRedirectMask | SubstructureNotifyMask;
|
||||
|
||||
XSendEvent(m_display, root, False, eventmask, &xev);
|
||||
|
||||
@@ -760,7 +760,7 @@ static void ui_apply_but_funcs_after(bContext *C)
|
||||
|
||||
if (after.opptr) {
|
||||
/* free in advance to avoid leak on exit */
|
||||
opptr = *after.opptr,
|
||||
opptr = *after.opptr;
|
||||
MEM_freeN(after.opptr);
|
||||
}
|
||||
|
||||
|
||||
@@ -3314,7 +3314,7 @@ void RNA_def_property_duplicate_pointers(StructOrFunctionRNA *cont_, PropertyRNA
|
||||
EnumPropertyRNA *eprop = (EnumPropertyRNA *)prop;
|
||||
|
||||
if (eprop->item) {
|
||||
earray = MEM_callocN(sizeof(EnumPropertyItem) * (eprop->totitem + 1), "RNA_def_property_store"),
|
||||
earray = MEM_callocN(sizeof(EnumPropertyItem) * (eprop->totitem + 1), "RNA_def_property_store");
|
||||
memcpy(earray, eprop->item, sizeof(EnumPropertyItem) * (eprop->totitem + 1));
|
||||
eprop->item = earray;
|
||||
|
||||
|
||||
@@ -3681,7 +3681,7 @@ static PyObject *Method_ShaderSource(PyObject *UNUSED(self), PyObject *args)
|
||||
|
||||
glShaderSource(shader, 1, (const char **)&source, NULL);
|
||||
|
||||
return Py_INCREF(Py_None), Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user