summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-10-27 03:16:18 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-10-27 09:23:52 +0200
commitdc1858783e72bba808dbd87b5b03d5170449ad52 (patch)
tree5164686a8f38e64420f79b027900507d2c179a6d /xmloff
parent5690acdb44e8017055bb88e86e19d207836bb95c (diff)
tdf#120703 (PVS): V519 The variable is assigned values twice successively
Change-Id: I9265425a215609ef6bf4298ba39c8399f215ce27 Reviewed-on: https://gerrit.libreoffice.org/62406 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/sdxmlimp.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmloff/source/draw/sdxmlimp.cxx b/xmloff/source/draw/sdxmlimp.cxx
index fc836d42cc09..548caba54f48 100644
--- a/xmloff/source/draw/sdxmlimp.cxx
+++ b/xmloff/source/draw/sdxmlimp.cxx
@@ -666,8 +666,7 @@ SvXMLImportContext *SdXMLImport::CreateMetaContext(const sal_Int32 /*nElement*/,
SvXMLImportContext *SdXMLImport::CreateBodyContext(const OUString& rLocalName,
const uno::Reference<xml::sax::XAttributeList>&)
{
- SvXMLImportContext *pContext = nullptr;
- pContext = new SdXMLBodyContext(*this, rLocalName);
+ SvXMLImportContext* pContext = new SdXMLBodyContext(*this, rLocalName);
return pContext;
}