starmath/source/mathmlexport.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit ca5245f0e5685fac1db7fdb715c603b4d86bb828 Author: Takeshi Abe <t...@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 <c...@libreoffice.org> Reviewed-by: Michael Stahl <mst...@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))) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits