]> git.sesse.net Git - xml-template/commitdiff
Some coding style consistency fixes for C++0x.
authorsgunderson@bigfoot.com <>
Wed, 21 Sep 2011 21:27:45 +0000 (23:27 +0200)
committersgunderson@bigfoot.com <>
Wed, 21 Sep 2011 21:27:45 +0000 (23:27 +0200)
c++0x/xml-template.cpp

index 62b5dbaee46599f3a8417b8c5c25f997ee59c1b0..ac686502afc6e06b064f04938bfcb69662e675ff 100644 (file)
@@ -31,13 +31,14 @@ void Replace::process(xmlNode *node, bool clean) {
        }
 }
 
-Clone::Clone(const std::vector<Directive *> &subdirectives)
+Clone::Clone(const vector<Directive *> &subdirectives)
        : subdirectives(subdirectives) {}
        
-Clone::Clone(std::initializer_list<Directive *> subdirectives)
+Clone::Clone(initializer_list<Directive *> subdirectives)
        : subdirectives(subdirectives) {}
 
-void Clone::process(xmlNode *node, bool clean) {
+void Clone::process(xmlNode *node, bool clean)
+{
        // We can't use xmlNewDocFragment, since xmlDOMWrapCloneNode only knows
        // how to clone elements.
        vector<xmlNode *> new_nodes;
@@ -63,10 +64,11 @@ void Clone::process(xmlNode *node, bool clean) {
 Substitute::Substitute(const unordered_map<string, Directive*> &substitution_map)
        : substitution_map(substitution_map) {}
        
-Substitute::Substitute(std::initializer_list<std::pair<const std::string, Directive*>> substitution_map)
+Substitute::Substitute(initializer_list<pair<const string, Directive*>> substitution_map)
        : substitution_map(substitution_map) {}
 
-void Substitute::process(xmlNode *node, bool clean) {
+void Substitute::process(xmlNode *node, bool clean)
+{
        for (xmlNode *child = node->children; child != NULL; child = child->next) {
                bool processed = false;