diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-07 14:51:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-07 15:33:29 +0200 |
commit | 8d62cd21cba9f08e27f82713dc648341d27f91a3 (patch) | |
tree | 631275a6497f8a4ace93966637095d79ae00e812 /starmath | |
parent | 2bfcb3c56c2b6ad97318cb722ddb92884c59e41d (diff) |
coverity#708822 unused pointer value
Change-Id: I6797d11a09baa4f86826d8740301bb8d66bb247a
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathtype.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 2adc2aaa8ebf..688a91408ebf 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -2239,8 +2239,6 @@ sal_uInt8 MathType::HandleCScript(SmNode *pNode,SmNode *pContent,int nLevel, */ void MathType::HandleSubSupScript(SmNode *pNode,int nLevel) { - SmNode *pTemp; - sal_uInt8 nVariation=0xff; if (pNode->GetSubNode(LSUP+1)) { @@ -2248,9 +2246,10 @@ void MathType::HandleSubSupScript(SmNode *pNode,int nLevel) if (pNode->GetSubNode(LSUB+1)) nVariation=2; } - else if (NULL != (pTemp = pNode->GetSubNode(LSUB+1))) + else if ( NULL != pNode->GetSubNode(LSUB+1) ) nVariation=1; + SmNode *pTemp; if (nVariation!=0xff) { pS->WriteUChar( sal_uInt8(TMPL) ); //Template |