1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-24 02:21:01 +03:00

🚨 fixed some more clang-tidy warnings

This commit is contained in:
Niels Lohmann
2018-10-07 19:07:58 +02:00
parent 858e75c4df
commit 3abb788139
6 changed files with 102 additions and 122 deletions

View File

@ -7289,11 +7289,9 @@ class basic_json
// avoid undefined behavior
JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range"));
}
else
{
// default case: insert add offset
parent.insert(parent.begin() + static_cast<difference_type>(idx), val);
}
// default case: insert add offset
parent.insert(parent.begin() + static_cast<difference_type>(idx), val);
}
break;
}