diff --git a/SAX/filter/Writer.h b/SAX/filter/Writer.h index fae94717..05e42bfd 100644 --- a/SAX/filter/Writer.h +++ b/SAX/filter/Writer.h @@ -94,8 +94,8 @@ class basic_Writer : public basic_XMLFilterImpl, stream_(&stream), lexicalHandler_(0), declHandler_(0), - lastTag_(startTag), - encoding_(encoding) + encoding_(encoding), + lastTag_(startTag) { } // basic_Writer @@ -154,7 +154,6 @@ class basic_Writer : public basic_XMLFilterImpl, bool isDtd(const stringT& name); private: - stringT encoding_; bool inCDATA_; bool inDTD_; bool internalSubset_; @@ -163,6 +162,7 @@ private: ostreamT* stream_; LexicalHandlerT* lexicalHandler_; DeclHandlerT* declHandler_; + stringT encoding_; enum { startTag, endTag, docTag } lastTag_; const SAX::PropertyNames properties_;