diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-01-27 23:07:58 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-01-27 23:11:41 +0100 |
commit | b8d4b8656f1f4e4782ba7460070e99babc8a499e (patch) | |
tree | ad2931235c0db8cba968df4e30ed11c47f268f90 /rsc/source | |
parent | Fix ret value never used (diff) | |
download | core-b8d4b8656f1f4e4782ba7460070e99babc8a499e.tar.gz core-b8d4b8656f1f4e4782ba7460070e99babc8a499e.zip |
Some cppcheck cleaning
Change-Id: I7217ab7500de5d8220b85e56aceb6e843bd0769f
Diffstat (limited to 'rsc/source')
-rw-r--r-- | rsc/source/res/rscmgr.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/rsc/source/res/rscmgr.cxx b/rsc/source/res/rscmgr.cxx index 7d28932d43bd..be2301b18f3b 100644 --- a/rsc/source/res/rscmgr.cxx +++ b/rsc/source/res/rscmgr.cxx @@ -132,15 +132,12 @@ sal_Bool RscMgr::IsDefault( const RSCINST & rInst ){ |* *************************************************************************/ sal_Bool RscMgr::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){ - RscMgrInst * pClassData; - RscMgrInst * pDfltData; - if( !RscClass::IsValueDefault( rInst, pDef ) ) return sal_False; if( pDef ){ - pClassData = (RscMgrInst *)(rInst.pData + RscClass::Size()); - pDfltData = (RscMgrInst *)(pDef + RscClass::Size()); + RscMgrInst * pClassData = (RscMgrInst *)(rInst.pData + RscClass::Size()); + RscMgrInst * pDfltData = (RscMgrInst *)(pDef + RscClass::Size()); if( !pClassData->aRefId.IsId() && !pDfltData->aRefId.IsId() ){ return sal_True; |