🚨 fix warning

This commit is contained in:
Niels Lohmann 2024-03-26 17:25:26 +01:00
parent 91be9e0175
commit 8ef27594d1
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -1164,7 +1164,7 @@ TEST_CASE("value conversion")
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();
CHECK(*json(b).m_data.m_value.binary == *j.m_data.m_value.binary);
}