[Libreoffice-commits] core.git: xmloff/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 11 16:26:41 UTC 2019


 xmloff/source/core/xmlimp.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 19e96dc1569ea66acb668554daab9bebc6ad973b
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Nov 11 15:38:18 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Nov 11 17:25:22 2019 +0100

    reduce some ref-counting
    
    Change-Id: I7b372237c21c469f78be281eedbbdda217fd12c8
    Reviewed-on: https://gerrit.libreoffice.org/82442
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

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;


More information about the Libreoffice-commits mailing list