X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=tools%2Fminiswig%2Fxmlwriter.cpp;h=8a1f228ffb4c8ccc294f93f330abcc4f3a9cd33f;hb=78bbf9473d795d9ea9221e38829a9bacfce00fa5;hp=1a85247ecb26f8f984ac4eafb7adac27538ca29d;hpb=7bc083aca4963cb30540ca793580ccf74c4e72e3;p=supertux.git diff --git a/tools/miniswig/xmlwriter.cpp b/tools/miniswig/xmlwriter.cpp index 1a85247ec..8a1f228ff 100644 --- a/tools/miniswig/xmlwriter.cpp +++ b/tools/miniswig/xmlwriter.cpp @@ -2,7 +2,7 @@ #include #include -#include "xmlwriter.h" +#include "xmlwriter.hpp" XmlWriter::XmlWriter(std::ostream& outstream) : out(outstream), indent(0) @@ -40,12 +40,12 @@ 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()); } sections.pop_back(); - + indent--; newLine(); // XXX: We should check for consistency here @@ -75,4 +75,3 @@ void XmlWriter::closeTag() if (closetag != "") out << closetag << "\n"; } -