diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-02-02 19:19:19 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-02-03 02:17:32 +0000 |
commit | bd76d319bbda17f242e64b042027077e84c0f1d9 (patch) | |
tree | 56461ec91801dfd18af86929dca04ea6505ba533 /xmloff/source | |
parent | 32096592fcf067d50e22090135b542325f5e3e62 (diff) |
remove bogus nullprt checks for pContext
reported by Cppcheck
Change-Id: I737c2bd7be197ef9d0b29b922acd8021fefb7af6
Signed-off-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-on: https://gerrit.libreoffice.org/22059
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/draw/ximpnote.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/xmloff/source/draw/ximpnote.cxx b/xmloff/source/draw/ximpnote.cxx index 7f82c1f51173..23272f3e6730 100644 --- a/xmloff/source/draw/ximpnote.cxx +++ b/xmloff/source/draw/ximpnote.cxx @@ -96,17 +96,8 @@ SvXMLImportContext *SdXMLNotesContext::CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference< xml::sax::XAttributeList>& xAttrList ) { - // OK, notes page is set on base class, objects can be imported on notes page - SvXMLImportContext *pContext = nullptr; - - // some special objects inside presentation:notes context - - - // call parent when no own context was created - if(!pContext) - pContext = SdXMLGenericPageContext::CreateChildContext(nPrefix, rLocalName, xAttrList); - - return pContext; + // no own context in notes, call parent + return SdXMLGenericPageContext::CreateChildContext(nPrefix, rLocalName, xAttrList); } void SdXMLNotesContext::EndElement() |