summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/cellsuno.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-14 15:22:20 +0200
committerEike Rathke <erack@redhat.com>2016-09-23 15:22:38 +0000
commit3e22dfa5eb1ccebdc719a671d23bde7ccab256fb (patch)
treec3890b2a33cc298ad786c50a9d5879531fc6afc4 /sc/source/ui/unoobj/cellsuno.cxx
parent7d8196ea2f4ec3634dbad7367345e62c4ea9893d (diff)
convert formula error codes to scoped enum
Change-Id: I5ff214bf1ec9031e30344bc125bc99916fd11bfb Reviewed-on: https://gerrit.libreoffice.org/28897 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/ui/unoobj/cellsuno.cxx')
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx8
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