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:
authorCampbell Barton <ideasman42@gmail.com>2021-07-07 05:20:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-07 05:34:00 +0300
commitf85ef3d4423d77abe84072b781c02dd5a6145109 (patch)
tree2e398cfafae550b158e57abf66b689c1f7815420
parentcd38daeff411941e2de3bcd7dd1ddcd2b8a10645 (diff)
Cleanup: clang-tidy, unused function
-rw-r--r--source/blender/editors/space_node/node_edit.cc6
-rw-r--r--source/blender/makesrna/intern/rna_sequencer.c11
2 files changed, 3 insertions, 14 deletions
diff --git a/source/blender/editors/space_node/node_edit.cc b/source/blender/editors/space_node/node_edit.cc
index e6f23b89a02..5dd935bdd76 100644
--- a/source/blender/editors/space_node/node_edit.cc
+++ b/source/blender/editors/space_node/node_edit.cc
@@ -2428,7 +2428,7 @@ static int ntree_socket_change_type_exec(bContext *C, wmOperator *op)
Main *main = CTX_data_main(C);
bNodeSocket *iosock = ntree_get_active_interface_socket(sockets);
- if (iosock == NULL) {
+ if (iosock == nullptr) {
return OPERATOR_CANCELLED;
}
@@ -2438,7 +2438,7 @@ static int ntree_socket_change_type_exec(bContext *C, wmOperator *op)
}
/* Don't handle subtypes for now. */
- nodeModifySocketType(ntree, NULL, iosock, socket_type->idname);
+ nodeModifySocketType(ntree, nullptr, iosock, socket_type->idname);
/* Need the extra update here because the loop above does not check for valid links in the node
* group we're currently editing. */
@@ -2456,7 +2456,7 @@ static int ntree_socket_change_type_exec(bContext *C, wmOperator *op)
snode_notify(C, snode);
snode_dag_update(C, snode);
- WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL);
+ WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, nullptr);
return OPERATOR_FINISHED;
}
diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c
index b7b981ecbb0..0c46450759d 100644
--- a/source/blender/makesrna/intern/rna_sequencer.c
+++ b/source/blender/makesrna/intern/rna_sequencer.c
@@ -103,17 +103,6 @@ typedef struct SequenceSearchData {
SequenceModifierData *smd;
} SequenceSearchData;
-/* build a temp reference to the parent */
-static void meta_tmp_ref(Sequence *seq_par, Sequence *seq)
-{
- for (; seq; seq = seq->next) {
- seq->tmp = seq_par;
- if (seq->type == SEQ_TYPE_META) {
- meta_tmp_ref(seq, seq->seqbase.first);
- }
- }
-}
-
static void rna_SequenceElement_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
{
Scene *scene = (Scene *)ptr->owner_id;