summaryrefslogtreecommitdiff
path: root/sax/source/fastparser/fastparser.cxx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-17 18:24:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-18 08:16:49 +0100
commitd8326e80c6f5a6d393c1d18479c31c81ca1d9239 (patch)
treee04dde7fb89e7202c89e57e39fe11dcd90ebf17f /sax/source/fastparser/fastparser.cxx
parent466ec5aa2afca2d8eb3ee509bbb7753f2aec7544 (diff)
loplugin:referencecasting in sax
Change-Id: Ie7371b2c6ed340ce8417af03aa4f7b60890392ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111081 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax/source/fastparser/fastparser.cxx')
-rw-r--r--sax/source/fastparser/fastparser.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index e225f17a1621..f35e56e8ab7f 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -433,7 +433,7 @@ void Entity::startElement( Event const *pEvent )
try
{
- Reference< XFastAttributeList > xAttr( pEvent->mxAttributes.get() );
+ Reference< XFastAttributeList > xAttr( pEvent->mxAttributes );
Reference< XFastContextHandler > xContext;
if ( mxNamespaceHandler.is() )
@@ -834,8 +834,7 @@ void FastSaxParserImpl::parseStream(const InputSource& rStructSource)
// start the document
if( rEntity.mxDocumentHandler.is() )
{
- Reference< XLocator > xLoc( mxDocumentLocator.get() );
- rEntity.mxDocumentHandler->setDocumentLocator( xLoc );
+ rEntity.mxDocumentHandler->setDocumentLocator( mxDocumentLocator );
rEntity.mxDocumentHandler->startDocument();
}