From e68823a5f143728eab14ae62be7a0e4d154869f4 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Thu, 22 Sep 2011 23:51:02 +0200 Subject: [PATCH] Microscopic optimization to the C++11 code. --- c++11/xml-template.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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( -- 2.39.2