clang: Returning null reference
Change-Id: I2cfc14e73696a027283dfa5eef98f784505dc5a3
This commit is contained in:
parent
2daceb87b9
commit
a7fcb3ed07
@ -2597,10 +2597,12 @@ SbxInfo* SbUnoMethod::GetInfo()
|
|||||||
|
|
||||||
const Sequence<ParamInfo>& SbUnoMethod::getParamInfos( void )
|
const Sequence<ParamInfo>& SbUnoMethod::getParamInfos( void )
|
||||||
{
|
{
|
||||||
if( !pParamInfoSeq && m_xUnoMethod.is() )
|
if (!pParamInfoSeq)
|
||||||
{
|
{
|
||||||
Sequence<ParamInfo> aTmp = m_xUnoMethod->getParameterInfos() ;
|
Sequence<ParamInfo> aTmp;
|
||||||
pParamInfoSeq = new Sequence<ParamInfo>( aTmp );
|
if (m_xUnoMethod.is())
|
||||||
|
aTmp = m_xUnoMethod->getParameterInfos();
|
||||||
|
pParamInfoSeq = new Sequence<ParamInfo>(aTmp);
|
||||||
}
|
}
|
||||||
return *pParamInfoSeq;
|
return *pParamInfoSeq;
|
||||||
}
|
}
|
||||||
|
@ -59,13 +59,10 @@ namespace svx
|
|||||||
using namespace ::com::sun::star::datatransfer;
|
using namespace ::com::sun::star::datatransfer;
|
||||||
Reference<XTransferable> &transfer = const_cast<Reference<XTransferable> &>(_rData.GetTransferable());
|
Reference<XTransferable> &transfer = const_cast<Reference<XTransferable> &>(_rData.GetTransferable());
|
||||||
XTransferable *pInterface = transfer.get();
|
XTransferable *pInterface = transfer.get();
|
||||||
OXFormsTransferable *pThis = dynamic_cast<OXFormsTransferable *>(pInterface);
|
OXFormsTransferable& rThis = dynamic_cast<OXFormsTransferable&>(*pInterface);
|
||||||
DBG_ASSERT(pThis,"XTransferable is NOT an OXFormsTransferable???");
|
return rThis.m_aDescriptor;
|
||||||
return pThis->m_aDescriptor;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace svx
|
} // namespace svx
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user