diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-21 12:34:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-21 19:00:26 +0100 |
commit | e150c78cdfbe112bd880107b476ac42e72d4643c (patch) | |
tree | 8f67a46bd60ee89d28d485f0ada90ab7871566cc /sax/source/expatwrap | |
parent | bb8fb3237c9d1b9516f5803d476c1db09570c2dc (diff) |
loplugin:refcounting in package..sax
Change-Id: I83618f54a4117cd81d8626307716129a761e14c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111274
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax/source/expatwrap')
-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): |