summaryrefslogtreecommitdiff
path: root/basic/source/classes
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-16 14:50:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-19 08:58:46 +0200
commit24cbc7a1fc857748dfba31b426f786307b779d48 (patch)
tree5ff6b3b75a51d3e37684941504c505fef4c1f7f1 /basic/source/classes
parent59548784486cfa42662490432474431f760dacc1 (diff)
loplugin:useuniqueptr in SbUnoMethod
Change-Id: Ibeae1754a18152c3a17379c95e3caa536a8822db
Diffstat (limited to 'basic/source/classes')
-rw-r--r--basic/source/classes/sbunoobj.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index fc2b6fac29ef..034ee01d0bba 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -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;
}