From be7855591e3b47e5e72c09555946f75975a8c028 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 16 Mar 2022 11:58:22 +1100 Subject: Cleanup: rename cnt to count Follow naming from T85728. --- source/blender/blenlib/intern/delaunay_2d.cc | 6 +++--- source/blender/blenlib/intern/expr_pylike_eval.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'source/blender/blenlib/intern') 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 std::ostream &operator<<(std::ostream &os, const CDT_state< os << " merge to " << vertname(cdt_state.cdt.verts[v->merge_to_index]) << "\n"; } const SymEdge *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 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; } -- cgit v1.2.3