From 7eb9f6f6e4936a3e8adef4baad93b1604770488b Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 11 Aug 2017 08:59:56 +0200 Subject: [PATCH] test: make totalLen snake case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For consistency, use snake case (total_len) for the local totalLen variable. PR-URL: https://github.com/nodejs/node/pull/14765 Reviewed-By: Anna Henningsen Reviewed-By: Ben Noordhuis Reviewed-By: Michaël Zasso Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Alexey Orlenko Reviewed-By: Gibson Fahnestock --- test/cctest/node_test_fixture.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h index f5a25c70b5f44c..747ac225b4b53d 100644 --- a/test/cctest/node_test_fixture.h +++ b/test/cctest/node_test_fixture.h @@ -36,12 +36,12 @@ struct Argv { Argv(const std::initializer_list &args) { nr_args_ = args.size(); - int totalLen = 0; + int total_len = 0; for (auto it = args.begin(); it != args.end(); ++it) { - totalLen += strlen(*it) + 1; + total_len += strlen(*it) + 1; } argv_ = static_cast(malloc(nr_args_ * sizeof(char*))); - argv_[0] = static_cast(malloc(totalLen)); + argv_[0] = static_cast(malloc(total_len)); int i = 0; int offset = 0; for (auto it = args.begin(); it != args.end(); ++it, ++i) {