Clang Tidy: enable readability-non-const-parameter warning
Clang Tidy reported a couple of false positives. I disabled those `NOLINTNEXTLINE`. Differential Revision: https://developer.blender.org/D8199
This commit is contained in:
@@ -48,6 +48,6 @@ struct bContext *BPy_GetContext(void);
|
||||
void BPy_SetContext(struct bContext *C);
|
||||
|
||||
extern void bpy_context_set(struct bContext *C, PyGILState_STATE *gilstate);
|
||||
extern void bpy_context_clear(struct bContext *C, PyGILState_STATE *gilstate);
|
||||
extern void bpy_context_clear(struct bContext *C, const PyGILState_STATE *gilstate);
|
||||
|
||||
#endif /* __BPY_CAPI_UTILS_H__ */
|
||||
|
@@ -136,7 +136,7 @@ void bpy_context_set(bContext *C, PyGILState_STATE *gilstate)
|
||||
}
|
||||
|
||||
/* context should be used but not now because it causes some bugs */
|
||||
void bpy_context_clear(bContext *UNUSED(C), PyGILState_STATE *gilstate)
|
||||
void bpy_context_clear(bContext *UNUSED(C), const PyGILState_STATE *gilstate)
|
||||
{
|
||||
py_call_level--;
|
||||
|
||||
|
Reference in New Issue
Block a user