From 9cc20c9f0080270aff096f4e7e7aecbb01aa9a5f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 26 Jan 2015 10:28:52 +0000 Subject: fix coverity#1266487 Change-Id: I414dae9b5de83d0e0f9c3195262995cf0f4fd3e2 --- starmath/source/mathtype.cxx | 14 +++++++------- starmath/source/mathtype.hxx | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index f38791ce618b..19c4deb1e596 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -25,13 +25,13 @@ void MathType::Init() { //These are the default MathType sizes - aSizeTable[0]=12; - aSizeTable[1]=8; - aSizeTable[2]=6; - aSizeTable[3]=24; - aSizeTable[4]=10; - aSizeTable[5]=12; - aSizeTable[6]=12; + aSizeTable.push_back(12); + aSizeTable.push_back(8); + aSizeTable.push_back(6); + aSizeTable.push_back(24); + aSizeTable.push_back(10); + aSizeTable.push_back(12); + aSizeTable.push_back(12); /* These are the default MathType italic/bold settings If mathtype is changed diff --git a/starmath/source/mathtype.hxx b/starmath/source/mathtype.hxx index 9876710c5041..4e08cd5719e2 100644 --- a/starmath/source/mathtype.hxx +++ b/starmath/source/mathtype.hxx @@ -177,7 +177,7 @@ private: int nPendingAttributes; sal_uLong nInsertion; - sal_Int16 aSizeTable[7]; + std::vector aSizeTable; sal_Int16 nDefaultSize; sal_Int16 nLSize; sal_Int16 nDSize; -- cgit