Skip to content

Commit aad4ccc

Browse files
committed
Fix shadowing warnings.
1 parent adb4880 commit aad4ccc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/sources/test_writer.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,10 @@ TEST_CASE("Writer Array Array Writing", "[writer]")
610610
Writer writer(str_writer);
611611
writer.insert("key", [](ArrayWriter& array_writer)
612612
{
613-
array_writer.push([](ArrayWriter& array_writer)
613+
array_writer.push([](ArrayWriter& array_writer1)
614614
{
615-
array_writer.push(123.5);
616-
array_writer.push(456.5);
615+
array_writer1.push(123.5);
616+
array_writer1.push(456.5);
617617
});
618618
});
619619
REQUIRE(str_writer.str() == "key = [ [ 123.5, 456.5 ] ]\r\n");
@@ -639,10 +639,10 @@ TEST_CASE("Writer Array Object Writing", "[writer]")
639639
Writer writer(str_writer);
640640
writer.insert("key", [](ArrayWriter& array_writer)
641641
{
642-
array_writer.push([](ObjectWriter& object_writer)
642+
array_writer.push([](ObjectWriter& object_writer1)
643643
{
644-
object_writer["key0"] = 123.5;
645-
object_writer["key1"] = 456.5;
644+
object_writer1["key0"] = 123.5;
645+
object_writer1["key1"] = 456.5;
646646
});
647647
});
648648
REQUIRE(str_writer.str() == "key = [ \r\n\t{\r\n\t\tkey0 = 123.5\r\n\t\tkey1 = 456.5\r\n\t}\r\n]\r\n");

0 commit comments

Comments
 (0)