X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=c%2B%2B11%2Fxml-template.cpp;h=61d567fdacca1cf7d4a5ae1cd35951858bb316af;hb=e68823a5f143728eab14ae62be7a0e4d154869f4;hp=2e8fb9429fa3ab4508f33dcd4cd106ac75c39f52;hpb=6a37870125901165d10cc934d139fa259ff98ef5;p=xml-template 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(