summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-09-28 08:54:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-28 11:03:09 +0200
commitb47733e5f0a16f3fc1bdaad5c3ec171f2fc35d02 (patch)
tree02e44dd31040d03af7806ab81b770d95980cdc63 /sax
parent4b697b15a4985160fbe5b384411aa6b9c0b11b60 (diff)
avoid some ref-counting in a hot path
Change-Id: Ibae87fc4e2fbe11d52cd89134a253ac2215134a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140690 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 155cf656a00d..daf51f4ea1ee 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -435,7 +435,7 @@ void Entity::startElement( Event const *pEvent )
try
{
- Reference< XFastAttributeList > xAttr( pEvent->mxAttributes );
+ const Reference< XFastAttributeList > & xAttr( pEvent->mxAttributes );
Reference< XFastContextHandler > xContext;
if ( mxNamespaceHandler.is() )