diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-12 16:08:23 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-12 16:08:44 +0100 |
commit | 0c1a37e60393504b38990d1f0a95239bf6749766 (patch) | |
tree | aebfe560d9f4aa816c43856195e6b1b424931b4a /rsc | |
parent | df98a644a2325f509eac8555cdc731f6ff46f404 (diff) |
Some cppcheck cleaning
Change-Id: I74ff9d8d116ebfe9ebc302c79a3763eda9c1250f
Diffstat (limited to 'rsc')
-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 ); } |