Remove dynamic exceptions
[anna.git] / example / xml / xpath / main.cpp
index df7e093..3e903a6 100644 (file)
@@ -20,7 +20,7 @@ public:
    Test ();
    
 private:
-   void run () throw (anna::RuntimeException);      
+   void run () noexcept(false);      
 };
 
 using namespace std;
@@ -59,7 +59,7 @@ Test::Test () :
 }
 
 void Test::run () 
-   throw (RuntimeException)
+   noexcept(false)
 {
    CommandLine& commandLine (CommandLine::instantiate ());
 
@@ -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;
 }