diff options
-rw-r--r-- | sax/source/expatwrap/sax_expat.cxx | 4 | ||||
-rw-r--r-- | sax/source/expatwrap/saxwriter.cxx | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx index bbf608ff6abd..8bbfd24fee66 100644 --- a/sax/source/expatwrap/sax_expat.cxx +++ b/sax/source/expatwrap/sax_expat.cxx @@ -361,9 +361,9 @@ class LocatorImpl : // should use a different interface for stream positions! { public: - LocatorImpl( SaxExpatParser_Impl *p ) + explicit LocatorImpl(SaxExpatParser_Impl *p) + : m_pParser(p) { - m_pParser = p; } public: //XLocator diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx index 0043e6513995..feb8efd2c6bb 100644 --- a/sax/source/expatwrap/saxwriter.cxx +++ b/sax/source/expatwrap/saxwriter.cxx @@ -106,13 +106,13 @@ private: sal_uInt32& rPos) throw( SAXException ); inline void FinishStartElement() throw( SAXException ); public: - SaxWriterHelper(Reference< XOutputStream > m_TempOut) : - m_out(m_TempOut), - m_Sequence(SEQUENCESIZE), - mp_Sequence(NULL), - nLastLineFeedPos(0), - nCurrentPos(0), - m_bStartElementFinished(true) + explicit SaxWriterHelper(Reference< XOutputStream > m_TempOut) + : m_out(m_TempOut) + , m_Sequence(SEQUENCESIZE) + , mp_Sequence(NULL) + , nLastLineFeedPos(0) + , nCurrentPos(0) + , m_bStartElementFinished(true) { OSL_ENSURE(SEQUENCESIZE > 50, "Sequence cache size to small"); mp_Sequence = m_Sequence.getArray(); |