diff options
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; |