mirror of
https://github.com/nlohmann/json.git
synced 2026-05-21 13:45:33 +00:00
🚨 fix warning
This commit is contained in:
@@ -1164,7 +1164,7 @@ TEST_CASE("value conversion")
|
|||||||
|
|
||||||
SECTION("non-const")
|
SECTION("non-const")
|
||||||
{
|
{
|
||||||
const json j_const = j;
|
const json j_const = j; // NOLINT(performance-unnecessary-copy-initialization)
|
||||||
const auto& b = j_const.get_binary();
|
const auto& b = j_const.get_binary();
|
||||||
CHECK(*json(b).m_data.m_value.binary == *j.m_data.m_value.binary);
|
CHECK(*json(b).m_data.m_value.binary == *j.m_data.m_value.binary);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user