reduce some ref-counting

Change-Id: I7b372237c21c469f78be281eedbbdda217fd12c8
Reviewed-on: https://gerrit.libreoffice.org/82442
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2019-11-11 15:38:18 +02:00
parent 8791b9957c
commit 19e96dc156

View File

@ -920,7 +920,7 @@ void SAL_CALL SvXMLImport::endFastElement (sal_Int32 Element)
{
if (!maFastContexts.empty())
{
uno::Reference<XFastContextHandler> xContext = maFastContexts.top();
uno::Reference<XFastContextHandler> xContext = std::move(maFastContexts.top());
maFastContexts.pop();
isFastContext = true;
xContext->endFastElement( Element );
@ -935,7 +935,7 @@ void SAL_CALL SvXMLImport::endUnknownElement (const OUString & rPrefix, const OU
{
if (!maFastContexts.empty())
{
uno::Reference<XFastContextHandler> xContext = maFastContexts.top();
uno::Reference<XFastContextHandler> xContext = std::move(maFastContexts.top());
maFastContexts.pop();
xContext->endUnknownElement( rPrefix, rLocalName );
xContext = nullptr;