diff options
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/expatwrap/sax_expat.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx index 6017dc354001..b580970f68f3 100644 --- a/sax/source/expatwrap/sax_expat.cxx +++ b/sax/source/expatwrap/sax_expat.cxx @@ -357,8 +357,8 @@ SaxExpatParser::SaxExpatParser( ) { m_pImpl.reset( new SaxExpatParser_Impl ); - LocatorImpl *pLoc = new LocatorImpl( m_pImpl.get() ); - m_pImpl->rDocumentLocator.set( pLoc ); + rtl::Reference<LocatorImpl> pLoc = new LocatorImpl( m_pImpl.get() ); + m_pImpl->rDocumentLocator = pLoc; // Performance-improvement; handing out the same object with every call of // the startElement callback is allowed (see sax-specification): |