Commit 2cd1c104 authored by Mukund Sivaraman's avatar Mukund Sivaraman

[2726] Constify variable

parent 2652e68f
......@@ -690,7 +690,7 @@ StringElement::toJSON(std::ostream& ss) const {
ss << "\"";
const std::string& str = stringValue();
for (size_t i = 0; i < str.size(); ++i) {
char c = str[i];
const char c = str[i];
// Escape characters as defined in JSON spec
// Note that we do not escape forward slash; this
// is allowed, but not mandatory.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment