diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 10:03:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 11:57:45 +0000 |
commit | 0ddae2167e7d52bf0f2bda323100f5ebb4ab3dc0 (patch) | |
tree | e318d2c7969e5c2ea69329c5bde8d7daf3a1397b /lotuswordpro/source/filter/lwptablelayout.cxx | |
parent | coverity#1158398 Uncaught exception (diff) | |
download | core-0ddae2167e7d52bf0f2bda323100f5ebb4ab3dc0.tar.gz core-0ddae2167e7d52bf0f2bda323100f5ebb4ab3dc0.zip |
coverity#705403 Argument cannot be negative
Change-Id: I0cf67a4bd5ec95e135511611c236350d4347895e
Diffstat (limited to 'lotuswordpro/source/filter/lwptablelayout.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwptablelayout.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx index c40c37606b0b..b8193b4ca63d 100644 --- a/lotuswordpro/source/filter/lwptablelayout.cxx +++ b/lotuswordpro/source/filter/lwptablelayout.cxx @@ -845,7 +845,7 @@ sal_uInt16 LwpTableLayout::ConvertHeadingRow( ConvertTable(pTmpTable,nStartHeadRow,nEndHeadRow,0,nCol); - sal_uInt16 nRowNum = static_cast<sal_uInt16>(pTmpTable->GetRowCount()); + sal_uInt16 nRowNum = pTmpTable->GetRowCount(); sal_uInt8* CellMark = new sal_uInt8[nRowNum]; sal_Bool bFindFlag = sal_False; @@ -884,7 +884,7 @@ void LwpTableLayout::SplitRowToCells(XFTable* pTmpTable,XFTable* pXFTable, { sal_uInt16 i; sal_uInt8 j; - sal_uInt16 nRowNum = static_cast<sal_uInt16>(pTmpTable->GetRowCount()); + sal_uInt16 nRowNum = pTmpTable->GetRowCount(); sal_uInt8 nCol = static_cast<sal_uInt8>(GetTable()->GetColumn()); XFRow* pXFRow = new XFRow; @@ -981,7 +981,7 @@ void LwpTableLayout::SplitRowToCells(XFTable* pTmpTable,XFTable* pXFTable, sal_Bool LwpTableLayout::FindSplitColMark(XFTable* pXFTable,sal_uInt8* pCellMark, sal_uInt8& nMaxColSpan) { - sal_uInt16 nRowNum = static_cast<sal_uInt16>(pXFTable->GetRowCount()); + sal_uInt16 nRowNum = pXFTable->GetRowCount(); sal_uInt8 nColNum = static_cast<sal_uInt8>(pXFTable->GetColumnCount()); sal_uInt8 nCellMark=0; sal_uInt8 nCount; |