Skip to content

Commit ce037ad

Browse files
committed
Rename argument
1 parent cf0ede3 commit ce037ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/tao/json/internal/value_builder.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace tao
2727
// void commit_element() {}
2828
// void end_array() {}
2929
// void begin_object() {}
30-
// void commit_key( std::string && key ) {}
30+
// void commit_key( std::string && v ) {}
3131
// void commit_member() {}
3232
// void end_object() {}
3333
// };
@@ -77,9 +77,9 @@ namespace tao
7777
current->unsafe_emplace_object();
7878
}
7979

80-
void commit_key( std::string && key )
80+
void commit_key( std::string && v )
8181
{
82-
const auto r = current->unsafe_emplace( std::move( key ), json::null );
82+
const auto r = current->unsafe_emplace( std::move( v ), json::null );
8383
if ( ! r.second ) {
8484
// TODO: throw on duplicate key? offer a choice?
8585
r.first->second = json::null;

0 commit comments

Comments
 (0)