coverity#738968 Unused pointer value

Change-Id: I0fabc525f5c052823946da93587ff1caaada9ab1
This commit is contained in:
Caolán McNamara
2014-01-27 15:58:18 +00:00
parent 06cfc634cd
commit df3c3ed1f0

View File

@@ -161,12 +161,11 @@ dispatchRequests (const uno::Reference< frame::XModel>& xModel, const OUString &
uno::Sequence<beans::PropertyValue> dispatchProps(1);
sal_Int32 nProps = sProps.getLength();
beans::PropertyValue* pDest = dispatchProps.getArray();
if ( nProps )
{
dispatchProps.realloc( nProps + 1 );
// need to reaccquire pDest after realloc
pDest = dispatchProps.getArray();
// need to accquire pDest after realloc
beans::PropertyValue* pDest = dispatchProps.getArray();
const beans::PropertyValue* pSrc = sProps.getConstArray();
for ( sal_Int32 index=0; index<nProps; ++index, ++pSrc, ++pDest )
*pDest = *pSrc;