From 8d62cd21cba9f08e27f82713dc648341d27f91a3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 7 Feb 2014 14:51:59 +0200 Subject: [PATCH] coverity#708822 unused pointer value Change-Id: I6797d11a09baa4f86826d8740301bb8d66bb247a --- starmath/source/mathtype.cxx | 5 ++--- 1 file 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