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:
authorHans Goudey <h.goudey@me.com>2022-04-15 19:59:02 +0300
committerHans Goudey <h.goudey@me.com>2022-04-15 19:59:02 +0300
commit0f9057390de1ce240cf5b09492077169ebf132c5 (patch)
tree8d8bbe8b985c85f755e5a482611d77735aef3bd9
parent7484f274dcdc9092dd5d85059e8d110572fe3b3c (diff)
Cleanup: Clang tidy
-rw-r--r--source/blender/editors/object/object_transform.cc6
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_paint_image.cc4
-rw-r--r--source/blender/editors/space_node/node_draw.cc2
3 files changed, 5 insertions, 7 deletions
diff --git a/source/blender/editors/object/object_transform.cc b/source/blender/editors/object/object_transform.cc
index c0ec6c6678e..976fe683f95 100644
--- a/source/blender/editors/object/object_transform.cc
+++ b/source/blender/editors/object/object_transform.cc
@@ -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;
}
diff --git a/source/blender/editors/sculpt_paint/sculpt_paint_image.cc b/source/blender/editors/sculpt_paint/sculpt_paint_image.cc
index 082ff6260c2..1fc7551f545 100644
--- a/source/blender/editors/sculpt_paint/sculpt_paint_image.cc
+++ b/source/blender/editors/sculpt_paint/sculpt_paint_image.cc
@@ -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,
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc
index 692940d405c..47d35ced371 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -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,