Cleanup: Clang tidy

This commit is contained in:
Hans Goudey 2022-04-15 11:59:02 -05:00
parent 7484f274dc
commit 0f9057390d
3 changed files with 5 additions and 7 deletions

View File

@ -597,7 +597,7 @@ static bool apply_objects_internal_can_multiuser(bContext *C)
{
Object *obact = CTX_data_active_object(C);
if (ELEM(NULL, obact, obact->data)) {
if (ELEM(nullptr, obact, obact->data)) {
return false;
}
@ -1176,7 +1176,7 @@ void OBJECT_OT_transform_apply(wmOperatorType *ot)
static int object_parent_inverse_apply_exec(bContext *C, wmOperator *UNUSED(op))
{
CTX_DATA_BEGIN (C, Object *, ob, selected_editable_objects) {
if (ob->parent == NULL) {
if (ob->parent == nullptr) {
continue;
}
@ -1185,7 +1185,7 @@ static int object_parent_inverse_apply_exec(bContext *C, wmOperator *UNUSED(op))
}
CTX_DATA_END;
WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL);
WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, nullptr);
return OPERATOR_FINISHED;
}

View File

@ -38,9 +38,7 @@ struct ImageData {
Image *image = nullptr;
ImageUser *image_user = nullptr;
~ImageData()
{
}
~ImageData() = default;
static bool init_active_image(Object *ob,
ImageData *r_image_data,

View File

@ -1882,7 +1882,7 @@ static void node_draw_extra_info_row(const bNode &node,
0,
0,
extra_info_row.tooltip);
if (extra_info_row.tooltip_fn != NULL) {
if (extra_info_row.tooltip_fn != nullptr) {
UI_but_func_tooltip_set(but_icon,
extra_info_row.tooltip_fn,
extra_info_row.tooltip_fn_arg,