]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make ESICustomParser::parse c++98-compatible
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 10 Feb 2014 09:19:56 +0000 (10:19 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 10 Feb 2014 09:19:56 +0000 (10:19 +0100)
src/esi/CustomParser.cc

index 7c29d86ba0827b5b8d79200a7e0678c62522b415..986406240cfebb1653322e483bc4dae6dce0b861 100644 (file)
@@ -205,7 +205,8 @@ ESICustomParser::parse(char const *dataToParse, size_t const lengthOfData, bool
                 attribute = end + 1;
             }
 
-            theClient->start (tag + 1, const_cast<const char **>(attributes.data()), attributes.size() >> 1);
+            // TODO: after c++11, replace &attributes.front() with attributes.data()
+            theClient->start (tag + 1, const_cast<const char **>(&attributes.front()), attributes.size() >> 1);
             /* TODO: attributes */
 
             if (*(tagEnd - 1) == '/')