add regression test #2824

parent 2c030bac
...@@ -168,7 +168,7 @@ class sax_no_exception : public nlohmann::detail::json_sax_dom_parser<json> ...@@ -168,7 +168,7 @@ class sax_no_exception : public nlohmann::detail::json_sax_dom_parser<json>
static bool parse_error(std::size_t /*position*/, const std::string& /*last_token*/, const json::exception& ex) static bool parse_error(std::size_t /*position*/, const std::string& /*last_token*/, const json::exception& ex)
{ {
error_string = new std::string(ex.what()); error_string = new std::string(ex.what()); // NOLINT(cppcoreguidelines-owning-memory)
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment