diff --git a/include/tao/json/events/from_value.hpp b/include/tao/json/events/from_value.hpp index b81ad105..d13141e6 100644 --- a/include/tao/json/events/from_value.hpp +++ b/include/tao/json/events/from_value.hpp @@ -197,7 +197,7 @@ namespace tao::json::events template< typename Consumer, template< typename... > class Traits > void from_value( Consumer& consumer, basic_value< Traits >&& v ) { - from_value< static_cast< void ( * )( Consumer&, basic_value< Traits > && ) >( &from_value< Consumer, Traits > ), Consumer, Traits >( consumer, std::move( v ) ); + from_value< static_cast< void ( * )( Consumer&, basic_value< Traits >&& ) >( &from_value< Consumer, Traits > ), Consumer, Traits >( consumer, std::move( v ) ); } } // namespace tao::json::events diff --git a/include/tao/json/msgpack/events/to_stream.hpp b/include/tao/json/msgpack/events/to_stream.hpp index 9a96e374..fb446068 100644 --- a/include/tao/json/msgpack/events/to_stream.hpp +++ b/include/tao/json/msgpack/events/to_stream.hpp @@ -159,7 +159,7 @@ namespace tao::json::msgpack::events void element() noexcept {} - void end_array() // NOLINT(readability-convert-member-functions-to-static) + void end_array() // NOLINT(readability-convert-member-functions-to-static) { assert( false ); // LCOV_EXCL_LINE } @@ -196,7 +196,7 @@ namespace tao::json::msgpack::events void member() noexcept {} - void end_object() // NOLINT(readability-convert-member-functions-to-static) + void end_object() // NOLINT(readability-convert-member-functions-to-static) { assert( false ); // LCOV_EXCL_LINE } diff --git a/src/test/json/json_parse.cpp b/src/test/json/json_parse.cpp index 9ef2dda7..9c665200 100644 --- a/src/test/json/json_parse.cpp +++ b/src/test/json/json_parse.cpp @@ -116,7 +116,7 @@ namespace tao::json TEST_ASSERT( custom_from_string( "\"f\177o\"" ) == value( "f\177o" ) ); // TODO: This is sometimes allowed to allow embedded null-bytes within a null-terminated string. (Modified UTF-8) - TEST_THROWS( custom_from_string( "\"f\300\200o\"" ) ); // Codepoint 0x00 as 2 byte UTF-8 - overlong encoding. + TEST_THROWS( custom_from_string( "\"f\300\200o\"" ) ); // Codepoint 0x00 as 2 byte UTF-8 - overlong encoding. TEST_THROWS( custom_from_string( "\"f\300\201o\"" ) ); // Codepoint 0x01 as 2 byte UTF-8 - overlong encoding. TEST_THROWS( custom_from_string( "\"f\340\200\201o\"" ) ); // Codepoint 0x01 as 3 byte UTF-8 - overlong encoding.