summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-27 15:58:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-27 17:03:07 +0000
commitdf3c3ed1f08b62d7f9bbaae46bfc292c6a6585a8 (patch)
treec45e194c06689f16dae1ff60b23064d0f41b4d25 /vbahelper
parent06cfc634cd8d91a78be6692cd6954aabfbe37712 (diff)
coverity#738968 Unused pointer value
Change-Id: I0fabc525f5c052823946da93587ff1caaada9ab1
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx5
1 files 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<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;