From df3c3ed1f08b62d7f9bbaae46bfc292c6a6585a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 27 Jan 2014 15:58:18 +0000 Subject: [PATCH] coverity#738968 Unused pointer value Change-Id: I0fabc525f5c052823946da93587ff1caaada9ab1 --- vbahelper/source/vbahelper/vbahelper.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index bddda57aece6..026de6ef23c7 100644 --- a/vbahelper/source/vbahelper/vbahelper.cxx +++ b/vbahelper/source/vbahelper/vbahelper.cxx @@ -161,12 +161,11 @@ dispatchRequests (const uno::Reference< frame::XModel>& xModel, const OUString & uno::Sequence 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