-Weffc++ cleanup for miniswig
[supertux.git] / tools / miniswig / xmlwriter.cpp
index 459c220..5bc0b53 100644 (file)
@@ -4,8 +4,12 @@
 #include <sstream>
 #include "xmlwriter.hpp"
 
-XmlWriter::XmlWriter(std::ostream& outstream)
-    : out(outstream), indent(0)
+XmlWriter::XmlWriter(std::ostream& outstream) :
+    out(outstream), 
+    indent(0),
+    closetag(),
+    lasttag(),
+    sections()
 {
 }
 
@@ -40,7 +44,7 @@ void XmlWriter::closeTag(const char* name)
     const std::string& lastsection = sections.back();
     if (lastsection != name) {
         std::ostringstream msg;
-        msg << "mismtach in open/closeSection. Expected '"
+        msg << "mismatch in open/closeSection. Expected '"
             << lastsection << "' got '" << name << "'";
         throw std::runtime_error(msg.str());
     }