Kaydet (Commit) 24cbc7a1 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SbUnoMethod

Change-Id: Ibeae1754a18152c3a17379c95e3caa536a8822db
üst 59548784
......@@ -2493,7 +2493,7 @@ SbUnoMethod::SbUnoMethod
SbUnoMethod::~SbUnoMethod()
{
delete pParamInfoSeq;
pParamInfoSeq.reset();
if( this == pFirst )
pFirst = pNext;
......@@ -2535,7 +2535,7 @@ const Sequence<ParamInfo>& SbUnoMethod::getParamInfos()
Sequence<ParamInfo> aTmp;
if (m_xUnoMethod.is())
aTmp = m_xUnoMethod->getParameterInfos();
pParamInfoSeq = new Sequence<ParamInfo>(aTmp);
pParamInfoSeq.reset( new Sequence<ParamInfo>(aTmp) );
}
return *pParamInfoSeq;
}
......
......@@ -154,7 +154,7 @@ class SbUnoMethod : public SbxMethod
friend void clearUnoMethodsForBasic( StarBASIC const * pBasic );
css::uno::Reference< css::reflection::XIdlMethod > m_xUnoMethod;
css::uno::Sequence< css::reflection::ParamInfo >* pParamInfoSeq;
std::unique_ptr<css::uno::Sequence< css::reflection::ParamInfo >> pParamInfoSeq;
// #67781 reference to the previous and the next method in the method list
SbUnoMethod* pPrev;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment