diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 10:28:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:39 +0000 |
commit | 9cc20c9f0080270aff096f4e7e7aecbb01aa9a5f (patch) | |
tree | b0dfd375fdbcea550f833816d56f66f81b3513be /starmath | |
parent | 417bd8ad9018337f5177270a03c50b444461a628 (diff) |
fix coverity#1266487
Change-Id: I414dae9b5de83d0e0f9c3195262995cf0f4fd3e2
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathtype.cxx | 14 | ||||
-rw-r--r-- | 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<sal_Int16> aSizeTable; sal_Int16 nDefaultSize; sal_Int16 nLSize; sal_Int16 nDSize; |