diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-14 15:22:20 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-09-23 15:22:38 +0000 |
commit | 3e22dfa5eb1ccebdc719a671d23bde7ccab256fb (patch) | |
tree | c3890b2a33cc298ad786c50a9d5879531fc6afc4 /sc/inc/formulacell.hxx | |
parent | 7d8196ea2f4ec3634dbad7367345e62c4ea9893d (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/inc/formulacell.hxx')
-rw-r--r-- | sc/inc/formulacell.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx index cec4b2d64db3..d30facaf4ce0 100644 --- a/sc/inc/formulacell.hxx +++ b/sc/inc/formulacell.hxx @@ -296,13 +296,13 @@ public: bool GetMatrixOrigin( ScAddress& rPos ) const; void GetResultDimensions( SCSIZE& rCols, SCSIZE& rRows ); sc::MatrixEdge GetMatrixEdge( ScAddress& rOrgPos ) const; - sal_uInt16 GetErrCode(); // interpret first if necessary - sal_uInt16 GetRawError(); // don't interpret, just return code or result error - bool GetErrorOrValue( sal_uInt16& rErr, double& rVal ); + FormulaError GetErrCode(); // interpret first if necessary + FormulaError GetRawError(); // don't interpret, just return code or result error + bool GetErrorOrValue( FormulaError& rErr, double& rVal ); sc::FormulaResultValue GetResult(); sc::FormulaResultValue GetResult() const; sal_uInt8 GetMatrixFlag() const { return cMatrixFlag;} - ScTokenArray* GetCode() { return pCode;} + ScTokenArray* GetCode() { return pCode;} const ScTokenArray* GetCode() const { return pCode;} void SetCode( ScTokenArray* pNew ); @@ -364,10 +364,10 @@ public: svl::SharedString GetResultString() const; /* Sets the shared code array to error state in addition to the cell result */ - void SetErrCode( sal_uInt16 n ); + void SetErrCode( FormulaError n ); /* Sets just the result to error */ - void SetResultError( sal_uInt16 n ); + void SetResultError( FormulaError n ); bool IsHyperLinkCell() const; EditTextObject* CreateURLObject(); |