diff options
Diffstat (limited to 'sc/source/ui/unoobj/cellsuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 2085ff4a7d61..33bc42ef80e2 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -1147,7 +1147,7 @@ static bool lcl_PutDataArray( ScDocShell& rDocShell, const ScRange& rRange, case uno::TypeClass_VOID: { // void = "no value" - rDoc.SetError( nDocCol, nDocRow, nTab, formula::NOTAVAILABLE ); + rDoc.SetError( nDocCol, nDocRow, nTab, FormulaError::NotAvailable ); } break; @@ -3645,7 +3645,7 @@ uno::Reference<sheet::XSheetCellRanges> SAL_CALL ScCellRangesBase::queryFormulaC { ScFormulaCell* pFCell = aIter.getFormulaCell(); bool bAdd = false; - if (pFCell->GetErrCode()) + if (pFCell->GetErrCode() != FormulaError::NONE) { if ( nResultFlags & sheet::FormulaResult::ERROR ) bAdd = true; @@ -6548,12 +6548,12 @@ sal_Int32 SAL_CALL ScCellObj::getError() throw(uno::RuntimeException, std::excep return 0; } - sal_uInt16 nError = 0; + FormulaError nError = FormulaError::NONE; ScRefCellValue aCell(pDocSh->GetDocument(), aCellPos); if (aCell.meType == CELLTYPE_FORMULA) nError = aCell.mpFormula->GetErrCode(); - return nError; + return (sal_Int32)nError; } // XFormulaTokens |