From: sgunderson@bigfoot.com <> Date: Thu, 22 Sep 2011 21:51:02 +0000 (+0200) Subject: Microscopic optimization to the C++11 code. X-Git-Url: https://git.sesse.net/?p=xml-template;a=commitdiff_plain;h=e68823a5f143728eab14ae62be7a0e4d154869f4 Microscopic optimization to the C++11 code. --- diff --git a/c++11/xml-template.cpp b/c++11/xml-template.cpp index 2e8fb94..61d567f 100644 --- a/c++11/xml-template.cpp +++ b/c++11/xml-template.cpp @@ -190,9 +190,8 @@ void Substitute::process(xmlNode *node, bool clean) } // Check all substitutions to see if we found anything appropriate. + string tag = reinterpret_cast(child->name); for (auto it : substitution_map) { - string tag = reinterpret_cast(child->name); - // Attribute substitution. if (begins_with(it.first, tag + "/")) { const xmlChar *attr_key = reinterpret_cast(