summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorZdibák Zoltán <zdibakzoltan@gmail.com>2018-11-10 19:45:19 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-11-11 09:19:59 +0100
commit3c87a48c19a417b9fffce3d75c8e7120282b1375 (patch)
tree7a972354d92253c29bdc26aff6520a036829b4bb /xmloff
parent85d959092ce9114941bba9d1cb49335e711677d1 (diff)
cppCheck redundantAssignment variable pContext
Change-Id: Ic7c97853eeeaa87e7ed7ecfad638f516f2be2969 Reviewed-on: https://gerrit.libreoffice.org/63246 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLIndexBodyContext.cxx4
1 files changed, 1 insertions, 3 deletions
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)
{