[Libreoffice-commits] core.git: starmath/source
Takeshi Abe
tabe at fixedpoint.jp
Tue Jun 9 11:53:57 PDT 2015
starmath/source/mathmlexport.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit ca5245f0e5685fac1db7fdb715c603b4d86bb828
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Tue Jun 9 23:27:49 2015 +0900
cppcheck: variableScope
Change-Id: Id3c2a7f95f4bbcb32203bb4df3610aacfc837a49
Reviewed-on: https://gerrit.libreoffice.org/16189
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index af1091c..a08750b 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)))
{
More information about the Libreoffice-commits
mailing list