diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-01-17 20:36:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-18 11:34:10 +0000 |
commit | 2210f239fffd1e90c199b25d779b60aa797fa53f (patch) | |
tree | 5723c7b47354e840483062b5dd83f888dbbd7eb4 /writerfilter | |
parent | a9fb9929a1337f0e858c9d874a63f9578576acec (diff) |
cppcheck: useInitializationList
Change-Id: If87c349a5036c54a83839cd66eb60ef6a09a4a46
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index e6abb85e6c0c..4a53b28a6d4f 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -88,14 +88,13 @@ OOXMLFastContextHandler::OOXMLFastContextHandler(OOXMLFastContextHandler * pCont mnDefine(0), mnToken(oox::XML_TOKEN_COUNT), mpStream(pContext->mpStream), + mpParserState(pContext->mpParserState), mnTableDepth(pContext->mnTableDepth), inPositionV(pContext->inPositionV), m_xContext(pContext->m_xContext), m_bDiscardChildren(pContext->m_bDiscardChildren), m_bTookChoice(pContext->m_bTookChoice) { - mpParserState = pContext->mpParserState; - if (mpParserState.get() == nullptr) mpParserState.reset(new OOXMLParserState()); |