From 8159091d8f2d163470d2a8d69f8e95dbf75f1708 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 23 Jul 2020 12:58:09 +0200 Subject: [PATCH] :twisted_rightwards_arrows: rename variable to avoid shadowing --- test/src/unit-conversions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/unit-conversions.cpp b/test/src/unit-conversions.cpp index 97a4e6b6..7ab0e9a3 100644 --- a/test/src/unit-conversions.cpp +++ b/test/src/unit-conversions.cpp @@ -278,8 +278,8 @@ TEST_CASE("value conversion") SECTION("reserve is called on containers that supports it") { // make sure all values are properly copied - json j({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}); - auto v2 = j.get>(); + json j2({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}); + auto v2 = j2.get>(); CHECK(v2.size() == 10); } #endif