Skip to content

Commit 7eb9f6f

Browse files
danbevaddaleax
authored andcommittedAug 12, 2017
test: make totalLen snake case
For consistency, use snake case (total_len) for the local totalLen variable. PR-URL: #14765 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 029567a commit 7eb9f6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎test/cctest/node_test_fixture.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ struct Argv {
3636

3737
Argv(const std::initializer_list<const char*> &args) {
3838
nr_args_ = args.size();
39-
int totalLen = 0;
39+
int total_len = 0;
4040
for (auto it = args.begin(); it != args.end(); ++it) {
41-
totalLen += strlen(*it) + 1;
41+
total_len += strlen(*it) + 1;
4242
}
4343
argv_ = static_cast<char**>(malloc(nr_args_ * sizeof(char*)));
44-
argv_[0] = static_cast<char*>(malloc(totalLen));
44+
argv_[0] = static_cast<char*>(malloc(total_len));
4545
int i = 0;
4646
int offset = 0;
4747
for (auto it = args.begin(); it != args.end(); ++it, ++i) {

0 commit comments

Comments
 (0)
Please sign in to comment.