coverity#708822 unused pointer value

Change-Id: I6797d11a09baa4f86826d8740301bb8d66bb247a
This commit is contained in:
Noel Grandin
2014-02-07 14:51:59 +02:00
parent 2bfcb3c56c
commit 8d62cd21cb

View File

@@ -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