X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fxml%2Fxpath%2Fmain.cpp;h=f3558832c6676a2d668a8eb858d7726f06170f0a;hb=78be86969d2f26a9084b0c4af6ce43d5fa4ed3fd;hp=df7e093fdeae53d544bfb59946ec819ab2e7bb93;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git 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; }