From c7822840eb57d35a63ddcdec115bc3ea42266567 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 30 Jul 2021 15:00:54 +0200 Subject: [PATCH] :white_check_mark: add regression test #2824 --- test/src/unit-regression2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/unit-regression2.cpp b/test/src/unit-regression2.cpp index 56bb3f398..c20d72e38 100644 --- a/test/src/unit-regression2.cpp +++ b/test/src/unit-regression2.cpp @@ -168,7 +168,7 @@ class sax_no_exception : public nlohmann::detail::json_sax_dom_parser 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; }