Skip to content

Commit

Permalink
Merge branch 'fix-578'
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunn2001 committed Aug 27, 2017
2 parents 6062f9b + 004270d commit 5331d29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib_json/json_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ Reader::Reader(const Features& features)

bool
Reader::parse(const std::string& document, Value& root, bool collectComments) {
JSONCPP_STRING documentCopy(document.data(), document.data() + document.capacity());
std::swap(documentCopy, document_);
document_.assign(document.begin(), document.end());
const char* begin = document_.c_str();
const char* end = begin + document_.length();
return parse(begin, end, root, collectComments);
Expand Down

0 comments on commit 5331d29

Please sign in to comment.