]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2726] Constify variable
authorMukund Sivaraman <muks@isc.org>
Thu, 13 Jun 2013 10:10:14 +0000 (15:40 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 13 Jun 2013 10:10:14 +0000 (15:40 +0530)
src/lib/cc/data.cc

index c72fdb53df32acac899b80e0edc742b92bec248f..81bf97d14e6d9b4a94b7eed5b3b48401c0b90c71 100644 (file)
@@ -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.