diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-07 17:12:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-07 17:23:25 +0300 |
commit | 0b2d1badecc48b5cbff5ec088b29c6e9acc5e1d0 (patch) | |
tree | 0283a5c819d1e709edfd0de814636aa83a9b1033 /source/blender/depsgraph/intern/depsgraph_debug.cc | |
parent | ab823176d31dc155645de733f1cd4fbd6ad74592 (diff) |
Cleanup: use post increment/decrement
When the result isn't used, prefer post increment/decrement
(already used nearly everywhere in Blender).
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_debug.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_debug.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_debug.cc b/source/blender/depsgraph/intern/depsgraph_debug.cc index 6253d31b8aa..c5a756102ca 100644 --- a/source/blender/depsgraph/intern/depsgraph_debug.cc +++ b/source/blender/depsgraph/intern/depsgraph_debug.cc @@ -112,13 +112,13 @@ bool DEG_debug_consistency_check(Depsgraph *graph) int counter1 = 0; for (DEG::Relation *tmp_rel : node->outlinks) { if (tmp_rel == rel) { - ++counter1; + counter1++; } } int counter2 = 0; for (DEG::Relation *tmp_rel : rel->to->inlinks) { if (tmp_rel == rel) { - ++counter2; + counter2++; } } if (counter1 != counter2) { @@ -137,13 +137,13 @@ bool DEG_debug_consistency_check(Depsgraph *graph) int counter1 = 0; for (DEG::Relation *tmp_rel : node->inlinks) { if (tmp_rel == rel) { - ++counter1; + counter1++; } } int counter2 = 0; for (DEG::Relation *tmp_rel : rel->from->outlinks) { if (tmp_rel == rel) { - ++counter2; + counter2++; } } if (counter1 != counter2) { @@ -179,7 +179,7 @@ bool DEG_debug_consistency_check(Depsgraph *graph) int num_links_pending = 0; for (DEG::Relation *rel : node->inlinks) { if (rel->from->type == DEG::NodeType::OPERATION) { - ++num_links_pending; + num_links_pending++; } } if (node->num_links_pending != num_links_pending) { |