summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-11-11 15:38:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-11-11 17:25:22 +0100
commit19e96dc1569ea66acb668554daab9bebc6ad973b (patch)
tree8d030f6e063cdca5ff0d1c636d0aab6b4f75ce90 /xmloff
parent8791b9957c95e5ed646e719308f12c14761cff6b (diff)
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>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlimp.cxx4
1 files changed, 2 insertions, 2 deletions
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<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;