Kaydet (Commit) ca5245f0 authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Michael Stahl

cppcheck: variableScope

Change-Id: Id3c2a7f95f4bbcb32203bb4df3610aacfc837a49
Reviewed-on: https://gerrit.libreoffice.org/16189Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 0d754a38
......@@ -901,7 +901,7 @@ void SmXMLExport::ExportSubSupScript(const SmNode *pNode, int nLevel)
const SmNode *pCSup = 0;
const SmNode *pLSub = 0;
const SmNode *pLSup = 0;
SvXMLElementExport *pThing = 0, *pThing2 = 0;
SvXMLElementExport *pThing2 = nullptr;
//if we have prescripts at all then we must use the tensor notation
......@@ -984,6 +984,7 @@ void SmXMLExport::ExportSubSupScript(const SmNode *pNode, int nLevel)
}
else
{
SvXMLElementExport *pThing = nullptr;
if (NULL != (pSub = pNode->GetSubNode(RSUB+1)) &&
NULL != (pSup = pNode->GetSubNode(RSUP+1)))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment