]> git.mxchange.org Git - simgear.git/blobdiff - simgear/xml/easyxml.cxx
Make at least the header aliasing safe.
[simgear.git] / simgear / xml / easyxml.cxx
index dbebf0cae79ccb9861490c56a4a456ad581da0ea..cb6ee263eb27786684f079d1735d3674399c2091 100644 (file)
@@ -1,4 +1,8 @@
-// easyxml.cxx - implementation of EasyXML interfaces.
+/**
+ * \file easyxml.cxx - implementation of EasyXML interfaces.
+ * Written by David Megginson, 2000-2001
+ * This file is in the Public Domain, and comes with NO WARRANTY of any kind.
+ */
 
 #include <simgear/compiler.h>
 
@@ -263,12 +267,12 @@ readXML (const string &path, XMLVisitor &visitor)
   if (input.good()) {
     try {
       readXML(input, visitor, path);
-    } catch (sg_io_exception &e) {
+    } catch (sg_io_exception &) {
       input.close();
-      throw e;
-    } catch (sg_throwable &t) {
+      throw;
+    } catch (sg_throwable &) {
       input.close();
-      throw t;
+      throw;
     }
   } else {
     throw sg_io_exception("Failed to open file", sg_location(path),