Browse Source

[2726] Constify variable

Mukund Sivaraman 12 years ago
parent
commit
2cd1c10416
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/cc/data.cc

+ 1 - 1
src/lib/cc/data.cc

@@ -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.