From cc4206a718c7aea53c314182e45952234aaa14be Mon Sep 17 00:00:00 2001 From: Evan Driscoll Date: Sat, 2 Jun 2018 20:51:53 -0500 Subject: [PATCH] West const to match existing code --- include/nlohmann/detail/output/fancy_serializer.hpp | 2 +- single_include/nlohmann/json.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)