summaryrefslogtreecommitdiffstats
path: root/include/formula/tokenarray.hxx
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 /include/formula/tokenarray.hxx
parentperf: eliminate SfxSimpleHint and move to SfxHint, tdf#87101 related (diff)
downloadcore-3e22dfa5eb1ccebdc719a671d23bde7ccab256fb.tar.gz
core-3e22dfa5eb1ccebdc719a671d23bde7ccab256fb.zip
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 'include/formula/tokenarray.hxx')
-rw-r--r--include/formula/tokenarray.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx
index b1d2deb3318d..1c6ed2256f79 100644
--- a/include/formula/tokenarray.hxx
+++ b/include/formula/tokenarray.hxx
@@ -123,7 +123,7 @@ protected:
sal_uInt16 nLen; // Length of token array
sal_uInt16 nRPN; // Length of RPN array
sal_uInt16 nIndex; // Current step index
- sal_uInt16 nError; // Error code
+ FormulaError nError; // Error code
ScRecalcMode nMode; // Flags to indicate when to recalc this code
bool bHyperLink; // If HYPERLINK() occurs in the formula.
bool mbFromRangeName; // If this array originates from a named expression
@@ -230,11 +230,11 @@ public:
FormulaToken** GetArray() const { return pCode; }
FormulaToken** GetCode() const { return pRPN; }
- sal_uInt16 GetLen() const { return nLen; }
- sal_uInt16 GetCodeLen() const { return nRPN; }
- void Reset() { nIndex = 0; }
- sal_uInt16 GetCodeError() const { return nError; }
- void SetCodeError( sal_uInt16 n ) { nError = n; }
+ sal_uInt16 GetLen() const { return nLen; }
+ sal_uInt16 GetCodeLen() const { return nRPN; }
+ void Reset() { nIndex = 0; }
+ FormulaError GetCodeError() const { return nError; }
+ void SetCodeError( FormulaError n ) { nError = n; }
void SetHyperLink( bool bVal ) { bHyperLink = bVal; }
bool IsHyperLink() const { return bHyperLink; }