]> git.sesse.net Git - xml-template/blobdiff - c++0x/passthru.cpp
Fix a potential bug in the C++0x cleaning.
[xml-template] / c++0x / passthru.cpp
index afc38ec129bc9d8f6a0b3337706efc404fa8847f..f4fc63692a83a7d873b6552ac0ee390f65cb830b 100644 (file)
@@ -8,7 +8,7 @@ using namespace std;
 
 int main(int argc, char **argv)
 {
-       unordered_map<string, Directive*> master_map;
-       process_file("../xml/passthru.xml", argv[1], new Substitute(master_map));
+       Substitute master_directive = {};
+       process_file("../xml/passthru.xml", argv[1], &master_directive);
        return(0);
 }