Remove warnings
[anna.git] / example / xml / xpath / main.cpp
index df7e093..f355883 100644 (file)
@@ -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;
 }