loplugin:subtlezeroinit: editeng

Change-Id: I2fb3700f00ad76096d048747c8333337d5ffce8f
This commit is contained in:
Stephan Bergmann
2017-02-20 19:57:28 +01:00
parent c5346d4464
commit f407666ec9
4 changed files with 4 additions and 4 deletions

View File

@@ -491,7 +491,7 @@ void SvxBoundArgs::Concat( const tools::PolyPolygon* pPoly )
SetConcat( true ); SetConcat( true );
DBG_ASSERT( pPoly, "Nothing to do?" ); DBG_ASSERT( pPoly, "Nothing to do?" );
LongDqPtr pOld = pLongArr; LongDqPtr pOld = pLongArr;
pLongArr = new std::deque<long>(); pLongArr = new std::deque<long>;
aBoolArr.clear(); aBoolArr.clear();
bInner = false; bInner = false;
Calc( *pPoly ); // Note that this updates pLongArr, which is why we swapped it out earlier. Calc( *pPoly ); // Note that this updates pLongArr, which is why we swapped it out earlier.

View File

@@ -1149,7 +1149,7 @@ SvxRTFItemStackType::~SvxRTFItemStackType()
void SvxRTFItemStackType::Add(std::unique_ptr<SvxRTFItemStackType> pIns) void SvxRTFItemStackType::Add(std::unique_ptr<SvxRTFItemStackType> pIns)
{ {
if (!m_pChildList) if (!m_pChildList)
m_pChildList = new SvxRTFItemStackList(); m_pChildList = new SvxRTFItemStackList;
m_pChildList->push_back(std::move(pIns)); m_pChildList->push_back(std::move(pIns));
} }

View File

@@ -536,7 +536,7 @@ sal_Int16 SvxUnoNumberingRules::Compare( const Any& Any1, const Any& Any2 )
Reference< XAnyCompare > SvxCreateNumRuleCompare() throw() Reference< XAnyCompare > SvxCreateNumRuleCompare() throw()
{ {
return new SvxUnoNumberingRulesCompare(); return new SvxUnoNumberingRulesCompare;
} }
css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule() throw() css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule() throw()

View File

@@ -2322,7 +2322,7 @@ SvxDummyTextSource::~SvxDummyTextSource()
SvxEditSource* SvxDummyTextSource::Clone() const SvxEditSource* SvxDummyTextSource::Clone() const
{ {
return new SvxDummyTextSource(); return new SvxDummyTextSource;
} }
SvxTextForwarder* SvxDummyTextSource::GetTextForwarder() SvxTextForwarder* SvxDummyTextSource::GetTextForwarder()