diff options
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 4 | ||||
-rw-r--r-- | basic/source/inc/sbunoobj.hxx | 2 |
2 files changed, 3 insertions, 3 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; } diff --git a/basic/source/inc/sbunoobj.hxx b/basic/source/inc/sbunoobj.hxx index b31e34966d4e..2df319ffbb21 100644 --- a/basic/source/inc/sbunoobj.hxx +++ b/basic/source/inc/sbunoobj.hxx @@ -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; |