coverity#738968 Unused pointer value
Change-Id: I0fabc525f5c052823946da93587ff1caaada9ab1
This commit is contained in:
@@ -161,12 +161,11 @@ dispatchRequests (const uno::Reference< frame::XModel>& xModel, const OUString &
|
|||||||
uno::Sequence<beans::PropertyValue> dispatchProps(1);
|
uno::Sequence<beans::PropertyValue> dispatchProps(1);
|
||||||
|
|
||||||
sal_Int32 nProps = sProps.getLength();
|
sal_Int32 nProps = sProps.getLength();
|
||||||
beans::PropertyValue* pDest = dispatchProps.getArray();
|
|
||||||
if ( nProps )
|
if ( nProps )
|
||||||
{
|
{
|
||||||
dispatchProps.realloc( nProps + 1 );
|
dispatchProps.realloc( nProps + 1 );
|
||||||
// need to reaccquire pDest after realloc
|
// need to accquire pDest after realloc
|
||||||
pDest = dispatchProps.getArray();
|
beans::PropertyValue* pDest = dispatchProps.getArray();
|
||||||
const beans::PropertyValue* pSrc = sProps.getConstArray();
|
const beans::PropertyValue* pSrc = sProps.getConstArray();
|
||||||
for ( sal_Int32 index=0; index<nProps; ++index, ++pSrc, ++pDest )
|
for ( sal_Int32 index=0; index<nProps; ++index, ++pSrc, ++pDest )
|
||||||
*pDest = *pSrc;
|
*pDest = *pSrc;
|
||||||
|
Reference in New Issue
Block a user