From: Mukund Sivaraman Date: Thu, 13 Jun 2013 10:10:14 +0000 (+0530) Subject: [2726] Constify variable X-Git-Tag: bind10-1.2.0beta1-release~400^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2cd1c10416f27e6b054c3fe4726ea771f63d0bb2;p=thirdparty%2Fkea.git [2726] Constify variable --- diff --git a/src/lib/cc/data.cc b/src/lib/cc/data.cc index c72fdb53df..81bf97d14e 100644 --- a/src/lib/cc/data.cc +++ b/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.