mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-24 07:21:29 +01:00
Pass string as a const reference.
This commit is contained in:
parent
85a263e89f
commit
c8bb600d27
@ -300,7 +300,7 @@ public:
|
||||
/**
|
||||
* \param indentation Each level will be indented by this amount extra.
|
||||
*/
|
||||
StyledStreamWriter(JSONCPP_STRING indentation = "\t");
|
||||
StyledStreamWriter(const JSONCPP_STRING& indentation = "\t");
|
||||
~StyledStreamWriter() {}
|
||||
|
||||
public:
|
||||
|
@ -643,7 +643,7 @@ bool StyledWriter::hasCommentForValue(const Value& value) {
|
||||
// Class StyledStreamWriter
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
|
||||
StyledStreamWriter::StyledStreamWriter(JSONCPP_STRING indentation)
|
||||
StyledStreamWriter::StyledStreamWriter(const JSONCPP_STRING& indentation)
|
||||
: document_(NULL), rightMargin_(74), indentation_(indentation),
|
||||
addChildValues_(), indented_(false) {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user