diff --git a/include/nlohmann/detail/output/fancy_serializer.hpp b/include/nlohmann/detail/output/fancy_serializer.hpp index b01cfab51..190bcbc63 100644 --- a/include/nlohmann/detail/output/fancy_serializer.hpp +++ b/include/nlohmann/detail/output/fancy_serializer.hpp @@ -279,7 +279,7 @@ class fancy_serializer } } - void dump_string(string_t const& str, bool ensure_ascii) + void dump_string(const string_t& str, bool ensure_ascii) { o->write_character('\"'); if (style.strings_maximum_length == 0) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 82589b666..8782872ea 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -10349,7 +10349,7 @@ class fancy_serializer } } - void dump_string(string_t const& str, bool ensure_ascii) + void dump_string(const string_t& str, bool ensure_ascii) { o->write_character('\"'); if (style.strings_maximum_length == 0)