diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-16 03:58:22 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-16 03:58:22 +0300 |
commit | be7855591e3b47e5e72c09555946f75975a8c028 (patch) | |
tree | eb11ff27360e2285cddfe24609bc293b103e9ac0 /source/blender/blenlib | |
parent | 379bd6d50ce37e07cbc4fb1e1c47c814f6a7530e (diff) |
Cleanup: rename cnt to count
Follow naming from T85728.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/delaunay_2d.cc | 6 | ||||
-rw-r--r-- | source/blender/blenlib/intern/expr_pylike_eval.c | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/blenlib/intern/delaunay_2d.cc b/source/blender/blenlib/intern/delaunay_2d.cc index b7dbd7d679c..4a02072e770 100644 --- a/source/blender/blenlib/intern/delaunay_2d.cc +++ b/source/blender/blenlib/intern/delaunay_2d.cc @@ -423,7 +423,7 @@ template<typename T> std::ostream &operator<<(std::ostream &os, const CDT_state< os << " merge to " << vertname(cdt_state.cdt.verts[v->merge_to_index]) << "\n"; } const SymEdge<T> *se = v->symedge; - int cnt = 0; + int count = 0; constexpr int print_count_limit = 25; if (se) { os << " edges out:\n"; @@ -440,8 +440,8 @@ template<typename T> std::ostream &operator<<(std::ostream &os, const CDT_state< os << " " << vertname(vother) << "(e=" << trunc_ptr(se->edge) << ", se=" << trunc_ptr(se) << ")\n"; se = se->rot; - cnt++; - } while (se != v->symedge && cnt < print_count_limit); + count++; + } while (se != v->symedge && count < print_count_limit); os << "\n"; } } diff --git a/source/blender/blenlib/intern/expr_pylike_eval.c b/source/blender/blenlib/intern/expr_pylike_eval.c index db677cd304c..1c32336fee0 100644 --- a/source/blender/blenlib/intern/expr_pylike_eval.c +++ b/source/blender/blenlib/intern/expr_pylike_eval.c @@ -829,18 +829,18 @@ static bool parse_unary(ExprParseState *state) /* Specially supported functions. */ if (STREQ(state->tokenbuf, "min")) { - int cnt = parse_function_args(state); - CHECK_ERROR(cnt > 0); + int count = parse_function_args(state); + CHECK_ERROR(count > 0); - parse_add_op(state, OPCODE_MIN, 1 - cnt)->arg.ival = cnt; + parse_add_op(state, OPCODE_MIN, 1 - count)->arg.ival = count; return true; } if (STREQ(state->tokenbuf, "max")) { - int cnt = parse_function_args(state); - CHECK_ERROR(cnt > 0); + int count = parse_function_args(state); + CHECK_ERROR(count > 0); - parse_add_op(state, OPCODE_MAX, 1 - cnt)->arg.ival = cnt; + parse_add_op(state, OPCODE_MAX, 1 - count)->arg.ival = count; return true; } |