diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 11:26:42 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-21 07:34:56 +0100 |
commit | e455a1f25aef7b1b6d2c8ecc107d9ef50ec90a40 (patch) | |
tree | 2a134a0d63848e3b7b2c9003031da5b7824693c2 | |
parent | 18e07fd7d98d157af922dc64070e7c57f7dc9802 (diff) |
loplugin:subtlezeroinit: unoxml
Change-Id: I4e7f42d5d9d0056a59b8e6b67731628e1cc5cfa1
-rw-r--r-- | unoxml/qa/unit/domtest.cxx | 4 | ||||
-rw-r--r-- | unoxml/source/dom/document.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/qa/unit/domtest.cxx b/unoxml/qa/unit/domtest.cxx index ce7b88393d6c..35f41974acd7 100644 --- a/unoxml/qa/unit/domtest.cxx +++ b/unoxml/qa/unit/domtest.cxx @@ -276,8 +276,8 @@ struct SerializerTest : public test::BootstrapFixture mxDomBuilder.set( xDB ); mxInStream.set( new SequenceInputStream(css::uno::Sequence<sal_Int8>(reinterpret_cast<sal_Int8 const *>(validTestFile), SAL_N_ELEMENTS(validTestFile))) ); mxDomBuilder->setErrorHandler(mxErrHandler.get()); - mxHandler.set( new DocumentHandler() ); - mxTokHandler.set( new TokenHandler() ); + mxHandler.set( new DocumentHandler ); + mxTokHandler.set( new TokenHandler ); maRegisteredNamespaces.realloc(2); maRegisteredNamespaces[0] = beans::make_Pair( diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx index 9911c33e9ab2..b9c167ee2486 100644 --- a/unoxml/source/dom/document.cxx +++ b/unoxml/source/dom/document.cxx @@ -89,7 +89,7 @@ namespace DOM NodeType_DOCUMENT_NODE, reinterpret_cast<xmlNodePtr>(pDoc)) , m_aDocPtr(pDoc) , m_streamListeners() - , m_pEventDispatcher(new events::CEventDispatcher()) + , m_pEventDispatcher(new events::CEventDispatcher) { } diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index 0a3e80dc9767..b8f79f6fe9a8 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -87,7 +87,7 @@ namespace DOM }; CDocumentBuilder::CDocumentBuilder() - : m_xEntityResolver(new CDefaultEntityResolver()) + : m_xEntityResolver(new CDefaultEntityResolver) { // init libxml. libxml will protect itself against multiple // initializations so there is no problem here if this gets |