From a43a0e004c328ba6bb40c03a1f9917f4b4fc7d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 15 Mar 2014 14:38:35 +0000 Subject: [PATCH] coverity#1079296 Uninitialized pointer field Change-Id: I56ba87b453e8111a5c54f40eeb52d2998d140ce9 --- starmath/source/mathtype.hxx | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/starmath/source/mathtype.hxx b/starmath/source/mathtype.hxx index 332cd27d61cb..d4eb71a94536 100644 --- a/starmath/source/mathtype.hxx +++ b/starmath/source/mathtype.hxx @@ -53,10 +53,30 @@ typedef ::std::set< MathTypeFont, LessMathTypeFont > MathTypeFontSet; class MathType { public: - MathType(OUString &rIn) : - rRet(rIn), nHAlign(0), nVAlign(0), nDefaultSize(12), - nLSize(0), nDSize(0), nCurSize(0), nLastSize(0), bIsSilent(sal_False), - nTypeFace(0) + MathType(OUString &rIn) + : nVersion(0) + , nPlatform(0) + , nProduct(0) + , nProdVersion(0) + , nProdSubVersion(0) + , pS(NULL) + , rRet(rIn) + , pTree(NULL) + , nHAlign(0) + , nVAlign(0) + , nPendingAttributes(0) + , nInsertion(0) + , nDefaultSize(12) + , nLSize(0) + , nDSize(0) + , nCurSize(0) + , nLastSize(0) + , nSpec(0) + , bIsSilent(sal_False) + , bIsReInterpBrace(sal_False) + , nPostSup(0) + , nPostlSup(0) + , nTypeFace(0) { Init(); }