diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-06-09 23:27:49 +0900 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-06-09 18:53:32 +0000 |
commit | ca5245f0e5685fac1db7fdb715c603b4d86bb828 (patch) | |
tree | 4f919c3811935e79d6f0eeac4617f7ef7bdebfd1 /starmath | |
parent | 0d754a386fb44f970f33a3e71b2f0f3cfb7c4598 (diff) |
cppcheck: variableScope
Change-Id: Id3c2a7f95f4bbcb32203bb4df3610aacfc837a49
Reviewed-on: https://gerrit.libreoffice.org/16189
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlexport.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index af1091c3b400..a08750be455b 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -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))) { |