X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fxml%2Fxpath%2Fmain.cpp;h=f3558832c6676a2d668a8eb858d7726f06170f0a;hp=df7e093fdeae53d544bfb59946ec819ab2e7bb93;hb=7ee10b64f4c116460ffef5784eb9ef87d3f2339c;hpb=1a1b334a0d2b023bd778f0a19665cc9017dbc94a diff --git a/example/xml/xpath/main.cpp b/example/xml/xpath/main.cpp index df7e093..f355883 100644 --- a/example/xml/xpath/main.cpp +++ b/example/xml/xpath/main.cpp @@ -92,7 +92,6 @@ void Test::run () cout << "Time (apply" << i << "): " << final - init << " us" << endl << endl; if (xpath.isEmpty () == false) { if (i == 0) { - const xml::Node* node; for (Node::const_child_iterator ii = xpath.node_begin (), maxii = xpath.node_end (); ii != maxii; ii ++) cout << xmlCompiler.apply (XPath::node (ii)) << endl; } @@ -110,7 +109,6 @@ void Test::run () cout << "match: no node matching expression" << endl << endl; xpath.apply (xmlDoc, expression, mode); - const xml::Node* node; for (Node::const_child_iterator ii = xpath.node_begin (), maxii = xpath.node_end (); ii != maxii; ii ++) cout << xmlCompiler.apply (XPath::node (ii), xml::Compiler::Mode::Compact | xml::Compiler::Mode::NoNamespaces) << endl; }