summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorZdibák Zoltán <zdibakzoltan@gmail.com>2018-11-10 19:38:23 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-11-11 09:20:44 +0100
commitde4ce7d5464102886588152171736e00e9900b0b (patch)
treeddea854f2109edc28ec4a0320ec8eb99efc8a735 /xmloff
parent3c87a48c19a417b9fffce3d75c8e7120282b1375 (diff)
cppCheck redundantAssignment
Change-Id: I829c660c6c73868ac6a0f74e554d99c54d9f0ea8 Reviewed-on: https://gerrit.libreoffice.org/63245 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/sdxmlimp.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmloff/source/draw/sdxmlimp.cxx b/xmloff/source/draw/sdxmlimp.cxx
index 548caba54f48..2df993feccac 100644
--- a/xmloff/source/draw/sdxmlimp.cxx
+++ b/xmloff/source/draw/sdxmlimp.cxx
@@ -716,9 +716,7 @@ SvXMLImportContext *SdXMLImport::CreateFontDeclsContext(const OUString& rLocalNa
SvXMLImportContext *SdXMLImport::CreateScriptContext(
const OUString& rLocalName )
{
- SvXMLImportContext *pContext = nullptr;
-
- pContext = new XMLScriptContext( *this, rLocalName, GetModel() );
+ SvXMLImportContext *pContext = new XMLScriptContext( *this, rLocalName, GetModel() );
return pContext;
}