diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-08-11 08:59:56 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-08-11 21:33:23 +0200 |
commit | d94e4b8e81fb7143683c0a726cdd49c58b6b2f97 (patch) | |
tree | 85ac5053d3e6c7b24c6d5218eac8b62976a2dbb6 /test/cctest | |
parent | 63fc89a6a05f7ef8475fc509aa278777c297f460 (diff) | |
download | node-new-d94e4b8e81fb7143683c0a726cdd49c58b6b2f97.tar.gz |
test: make totalLen snake case
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 <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'test/cctest')
-rw-r--r-- | test/cctest/node_test_fixture.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h index f5a25c70b5..747ac225b4 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<const char*> &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<char**>(malloc(nr_args_ * sizeof(char*))); - argv_[0] = static_cast<char*>(malloc(totalLen)); + argv_[0] = static_cast<char*>(malloc(total_len)); int i = 0; int offset = 0; for (auto it = args.begin(); it != args.end(); ++it, ++i) { |