Commit 15ec0fe1 authored by aodq's avatar aodq

change c-style cast to static_cast for #2304

parent 12885446
...@@ -263,7 +263,7 @@ class json_sax_dom_parser ...@@ -263,7 +263,7 @@ class json_sax_dom_parser
const Exception& ex) const Exception& ex)
{ {
errored = true; errored = true;
(void)ex; static_cast<void>(ex);
if (allow_exceptions) if (allow_exceptions)
{ {
JSON_THROW(ex); JSON_THROW(ex);
...@@ -502,7 +502,7 @@ class json_sax_dom_callback_parser ...@@ -502,7 +502,7 @@ class json_sax_dom_callback_parser
const Exception& ex) const Exception& ex)
{ {
errored = true; errored = true;
(void)ex; static_cast<void>(ex);
if (allow_exceptions) if (allow_exceptions)
{ {
JSON_THROW(ex); JSON_THROW(ex);
......
...@@ -5441,7 +5441,7 @@ class json_sax_dom_parser ...@@ -5441,7 +5441,7 @@ class json_sax_dom_parser
const Exception& ex) const Exception& ex)
{ {
errored = true; errored = true;
(void)ex; static_cast<void>(ex);
if (allow_exceptions) if (allow_exceptions)
{ {
JSON_THROW(ex); JSON_THROW(ex);
...@@ -5680,7 +5680,7 @@ class json_sax_dom_callback_parser ...@@ -5680,7 +5680,7 @@ class json_sax_dom_callback_parser
const Exception& ex) const Exception& ex)
{ {
errored = true; errored = true;
(void)ex; static_cast<void>(ex);
if (allow_exceptions) if (allow_exceptions)
{ {
JSON_THROW(ex); JSON_THROW(ex);
......
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