From e455a1f25aef7b1b6d2c8ecc107d9ef50ec90a40 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 20 Feb 2017 11:26:42 +0100 Subject: loplugin:subtlezeroinit: unoxml Change-Id: I4e7f42d5d9d0056a59b8e6b67731628e1cc5cfa1 --- unoxml/qa/unit/domtest.cxx | 4 ++-- unoxml/source/dom/document.cxx | 2 +- 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(reinterpret_cast(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(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 -- cgit