mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-13 10:22:55 +01:00
COMP: Remove shadow variable warning
jsoncpp/src/test_lib_json/main.cpp:2261:30: warning: declaration shadows a local variable [-Wshadow] Json::StyledStreamWriter writer; ^ jsoncpp/src/test_lib_json/main.cpp:2237:28: note: previous declaration is here Json::StyledStreamWriter writer; ^
This commit is contained in:
parent
7429bb2bfa
commit
5fb17a66b8
@ -2234,7 +2234,6 @@ JSONTEST_FIXTURE_LOCAL(StyledStreamWriterTest, writeNestedObjects) {
|
||||
}
|
||||
|
||||
JSONTEST_FIXTURE_LOCAL(StyledStreamWriterTest, multiLineArray) {
|
||||
Json::StyledStreamWriter writer;
|
||||
{
|
||||
// Array member has more than 20 print effect rendering lines
|
||||
const Json::String expected("[\n\t0,"
|
||||
@ -2268,6 +2267,7 @@ JSONTEST_FIXTURE_LOCAL(StyledStreamWriterTest, multiLineArray) {
|
||||
JSONTEST_ASSERT_STRING_EQUAL(expected, result);
|
||||
}
|
||||
{
|
||||
Json::StyledStreamWriter writer;
|
||||
// Array members do not exceed 21 print effects to render a single line
|
||||
const Json::String expected("[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]\n");
|
||||
Json::Value root;
|
||||
|
Loading…
Reference in New Issue
Block a user