]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Changed c-style cast to const_cast in esi/CustomParser.cc
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 4 Feb 2014 19:55:16 +0000 (20:55 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 4 Feb 2014 19:55:16 +0000 (20:55 +0100)
src/esi/CustomParser.cc

index a384c668cdeab70921036272c93c99d0fb84d595..7c29d86ba0827b5b8d79200a7e0678c62522b415 100644 (file)
@@ -205,7 +205,7 @@ ESICustomParser::parse(char const *dataToParse, size_t const lengthOfData, bool
                 attribute = end + 1;
             }
 
-            theClient->start (tag + 1, (const char **)attributes.data(), attributes.size() >> 1);
+            theClient->start (tag + 1, const_cast<const char **>(attributes.data()), attributes.size() >> 1);
             /* TODO: attributes */
 
             if (*(tagEnd - 1) == '/')