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

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 2 16:51:44 UTC 2020


 xmloff/source/core/xmlimp.cxx |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 5c8920486ae894e25814a456f12b0f76a4cb6085
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Sep 2 16:10:42 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Sep 2 18:50:59 2020 +0200

    remove dead stores
    
    Change-Id: I6475d7c66f846c1f769e67a583af49c4240ec8cd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101935
    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 cf8b32c054e2..2505e2478d30 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -940,8 +940,6 @@ void SAL_CALL SvXMLImport::endFastElement (sal_Int32 Element)
         xContext->endFastElement( Element );
         if (isFastContext)
             maContexts.pop();
-
-        xContext = nullptr;
     }
 }
 
@@ -952,7 +950,6 @@ void SAL_CALL SvXMLImport::endUnknownElement (const OUString & rPrefix, const OU
         uno::Reference<XFastContextHandler> xContext = std::move(maFastContexts.top());
         maFastContexts.pop();
         xContext->endUnknownElement( rPrefix, rLocalName );
-        xContext = nullptr;
     }
 }
 


More information about the Libreoffice-commits mailing list