diff options
Diffstat (limited to 'rsc/source/res/rscarray.cxx')
-rw-r--r-- | rsc/source/res/rscarray.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/rsc/source/res/rscarray.cxx b/rsc/source/res/rscarray.cxx index 46e208667450..8b8b6db7b29a 100644 --- a/rsc/source/res/rscarray.cxx +++ b/rsc/source/res/rscarray.cxx @@ -116,13 +116,13 @@ RscTop * RscArray::GetTypeClass() const static RscInstNode * Create( RscInstNode * pNode ) { RscInstNode * pRetNode = NULL; - RscInstNode * pTmpNode; if( pNode ) { pRetNode = new RscInstNode( pNode->GetId() ); pRetNode->aInst = pNode->aInst.pClass->Create( NULL, pNode->aInst ); - if( (pTmpNode = Create( pNode->Left() )) != NULL ) + RscInstNode * pTmpNode = Create(pNode->Left()); + if (pTmpNode) pRetNode->Insert( pTmpNode ); if( (pTmpNode = Create( pNode->Right() )) != NULL ) pRetNode->Insert( pTmpNode ); @@ -381,14 +381,11 @@ static sal_Bool IsValueDefault( RscInstNode * pNode, CLASS_DATA pDef ) sal_Bool RscArray::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) { - RscArrayInst * pClassData; - sal_Bool bRet; - - bRet = RscTop::IsValueDefault( rInst, pDef ); + sal_Bool bRet = RscTop::IsValueDefault( rInst, pDef ); if( bRet ) { - pClassData = (RscArrayInst *)(rInst.pData + nOffInstData); + RscArrayInst * pClassData = (RscArrayInst *)(rInst.pData + nOffInstData); bRet = ::IsValueDefault( pClassData->pNode, pDef ); } |