diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-05 10:15:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-05 14:58:00 +0000 |
commit | 12bcfec04fcbe6425e327109ad47cd2b2b80d2bd (patch) | |
tree | b57ac6784ce892defa6d06fd5974318c8ffb6972 /sc | |
parent | ea272d9fe4bf2dc7419f76e2ddee707d768ccd50 (diff) |
markup with event type not checker type
Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table4.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/oox/workbookfragment.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx index ce9a07e2c3a2..701e6d5eb42b 100644 --- a/sc/source/core/data/table4.cxx +++ b/sc/source/core/data/table4.cxx @@ -366,7 +366,7 @@ void ScTable::FillAnalyse( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, nRow = sal::static_int_cast<SCROW>( nRow + nAddY ); for (sal_uInt16 i=1; i<nCount && rListData; i++) { - GetString(nCol, nRow, aStr); + (void)GetString(nCol, nRow, aStr); if (!rListData->GetSubIndex(aStr, rListIndex)) rListData = NULL; nCol = sal::static_int_cast<SCCOL>( nCol + nAddX ); diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx index 8488b46de7e5..fd95bf65d3a5 100644 --- a/sc/source/filter/oox/workbookfragment.cxx +++ b/sc/source/filter/oox/workbookfragment.cxx @@ -328,7 +328,7 @@ void importSheetFragments( WorkbookFragment& rWorkbookHandler, SheetFragmentVect nSheetsLeft++; } - // coverity[infinite_loop] + // coverity[loop_top] - this isn't an infinite loop where nSheetsLeft gets decremented by the above threads while( nSheetsLeft > 0) { // This is a much more controlled re-enterancy hazard than @@ -438,6 +438,7 @@ void WorkbookFragment::finalizeImport() case SHEETTYPE_CHARTSHEET: xFragment.set( new ChartsheetFragment( *xSheetGlob, aFragmentPath ) ); break; + // coverity[dead_error_begin] - following conditions exist to avoid compiler warning case SHEETTYPE_EMPTYSHEET: case SHEETTYPE_MODULESHEET: break; |