From 19e96dc1569ea66acb668554daab9bebc6ad973b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Nov 2019 15:38:18 +0200 Subject: reduce some ref-counting Change-Id: I7b372237c21c469f78be281eedbbdda217fd12c8 Reviewed-on: https://gerrit.libreoffice.org/82442 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/core/xmlimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index 7fd0613130c9..149421ee58d0 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -920,7 +920,7 @@ void SAL_CALL SvXMLImport::endFastElement (sal_Int32 Element) { if (!maFastContexts.empty()) { - uno::Reference xContext = maFastContexts.top(); + uno::Reference 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 xContext = maFastContexts.top(); + uno::Reference xContext = std::move(maFastContexts.top()); maFastContexts.pop(); xContext->endUnknownElement( rPrefix, rLocalName ); xContext = nullptr; -- cgit