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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 11 08:20:23 UTC 2018


 xmloff/source/text/XMLIndexBodyContext.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 3c87a48c19a417b9fffce3d75c8e7120282b1375
Author:     Zdibák Zoltán <zdibakzoltan at gmail.com>
AuthorDate: Sat Nov 10 19:45:19 2018 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Nov 11 09:19:59 2018 +0100

    cppCheck redundantAssignment variable pContext
    
    Change-Id: Ic7c97853eeeaa87e7ed7ecfad638f516f2be2969
    Reviewed-on: https://gerrit.libreoffice.org/63246
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/xmloff/source/text/XMLIndexBodyContext.cxx b/xmloff/source/text/XMLIndexBodyContext.cxx
index df805eddbcc1..b739093b595d 100644
--- a/xmloff/source/text/XMLIndexBodyContext.cxx
+++ b/xmloff/source/text/XMLIndexBodyContext.cxx
@@ -45,10 +45,8 @@ SvXMLImportContextRef XMLIndexBodyContext::CreateChildContext(
     const OUString& rLocalName,
     const Reference<XAttributeList> & xAttrList)
 {
-    SvXMLImportContext* pContext = nullptr;
-
     // return text content (if possible)
-    pContext = GetImport().GetTextImport()->CreateTextChildContext(
+    SvXMLImportContext* pContext = GetImport().GetTextImport()->CreateTextChildContext(
         GetImport(), nPrefix, rLocalName, xAttrList, XMLTextType::Section );
     if (nullptr == pContext)
     {


More information about the Libreoffice-commits mailing list