From f407666ec9b56d277bff9ebdea1c0d5cf90c39e8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 20 Feb 2017 19:57:28 +0100 Subject: [PATCH] loplugin:subtlezeroinit: editeng Change-Id: I2fb3700f00ad76096d048747c8333337d5ffce8f --- editeng/source/misc/txtrange.cxx | 2 +- editeng/source/rtf/svxrtf.cxx | 2 +- editeng/source/uno/unonrule.cxx | 2 +- editeng/source/uno/unotext.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/editeng/source/misc/txtrange.cxx b/editeng/source/misc/txtrange.cxx index a5e80f84af74..91b966907231 100644 --- a/editeng/source/misc/txtrange.cxx +++ b/editeng/source/misc/txtrange.cxx @@ -491,7 +491,7 @@ void SvxBoundArgs::Concat( const tools::PolyPolygon* pPoly ) SetConcat( true ); DBG_ASSERT( pPoly, "Nothing to do?" ); LongDqPtr pOld = pLongArr; - pLongArr = new std::deque(); + pLongArr = new std::deque; aBoolArr.clear(); bInner = false; Calc( *pPoly ); // Note that this updates pLongArr, which is why we swapped it out earlier. diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index ed9d7809a369..8dd7992d0174 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -1149,7 +1149,7 @@ SvxRTFItemStackType::~SvxRTFItemStackType() void SvxRTFItemStackType::Add(std::unique_ptr pIns) { if (!m_pChildList) - m_pChildList = new SvxRTFItemStackList(); + m_pChildList = new SvxRTFItemStackList; m_pChildList->push_back(std::move(pIns)); } diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx index 53a7ef05487e..785c26860cd0 100644 --- a/editeng/source/uno/unonrule.cxx +++ b/editeng/source/uno/unonrule.cxx @@ -536,7 +536,7 @@ sal_Int16 SvxUnoNumberingRules::Compare( const Any& Any1, const Any& Any2 ) Reference< XAnyCompare > SvxCreateNumRuleCompare() throw() { - return new SvxUnoNumberingRulesCompare(); + return new SvxUnoNumberingRulesCompare; } css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule() throw() diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index 17e4560ce4b0..70df9b115bf1 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -2322,7 +2322,7 @@ SvxDummyTextSource::~SvxDummyTextSource() SvxEditSource* SvxDummyTextSource::Clone() const { - return new SvxDummyTextSource(); + return new SvxDummyTextSource; } SvxTextForwarder* SvxDummyTextSource::GetTextForwarder()