commit | c8bb600d2729d2588e9af9d6d4a95ff0f59f63dc | [log] [tgz] |
---|---|---|
author | Marian Klymov <nekto1989@gmail.com> | Sat Jun 02 19:41:57 2018 +0300 |
committer | Marian Klymov <nekto1989@gmail.com> | Sat Jun 02 19:41:57 2018 +0300 |
tree | 21e7c1bc197aa582784a1faf171bec82ff6d58cc | |
parent | 85a263e89f132f26812f8f468b146fb8b8690063 [diff] [blame] |
Pass string as a const reference.
diff --git a/include/json/writer.h b/include/json/writer.h index 30424b0..7c9ae21 100644 --- a/include/json/writer.h +++ b/include/json/writer.h
@@ -300,7 +300,7 @@ /** * \param indentation Each level will be indented by this amount extra. */ - StyledStreamWriter(JSONCPP_STRING indentation = "\t"); + StyledStreamWriter(const JSONCPP_STRING& indentation = "\t"); ~StyledStreamWriter() {} public: