mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-27 00:15:36 +02: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.
|
* \param indentation Each level will be indented by this amount extra.
|
||||||
*/
|
*/
|
||||||
StyledStreamWriter(JSONCPP_STRING indentation = "\t");
|
StyledStreamWriter(const JSONCPP_STRING& indentation = "\t");
|
||||||
~StyledStreamWriter() {}
|
~StyledStreamWriter() {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -643,7 +643,7 @@ bool StyledWriter::hasCommentForValue(const Value& value) {
|
|||||||
// Class StyledStreamWriter
|
// Class StyledStreamWriter
|
||||||
// //////////////////////////////////////////////////////////////////
|
// //////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
StyledStreamWriter::StyledStreamWriter(JSONCPP_STRING indentation)
|
StyledStreamWriter::StyledStreamWriter(const JSONCPP_STRING& indentation)
|
||||||
: document_(NULL), rightMargin_(74), indentation_(indentation),
|
: document_(NULL), rightMargin_(74), indentation_(indentation),
|
||||||
addChildValues_(), indented_(false) {}
|
addChildValues_(), indented_(false) {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user