summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/formulabase.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-15 11:27:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-15 12:30:39 +0200
commit04004cc25905de47bb8406cb99be8fb34dd6f633 (patch)
tree52d70d0f1f01ea4a0fb9ffefef11dddd65151289 /sc/source/filter/inc/formulabase.hxx
parentf4ae7da07703de3a7636f00213fd01cb548682a0 (diff)
convert FuncParamValidity to scoped enum
and drop unused NONE enumerator Change-Id: Ibc77390efb195a9158ba809ad96aab4dcdbc09cb
Diffstat (limited to 'sc/source/filter/inc/formulabase.hxx')
-rw-r--r--sc/source/filter/inc/formulabase.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/sc/source/filter/inc/formulabase.hxx b/sc/source/filter/inc/formulabase.hxx
index e217165fe04d..a1924226d50b 100644
--- a/sc/source/filter/inc/formulabase.hxx
+++ b/sc/source/filter/inc/formulabase.hxx
@@ -367,12 +367,11 @@ struct ApiOpCodes
// Function parameter info ====================================================
/** Enumerates validity modes for a function parameter. */
-enum FuncParamValidity
+enum class FuncParamValidity
{
- FUNC_PARAM_NONE = 0, /// Default for an unspecified entry in a C-array.
- FUNC_PARAM_REGULAR, /// Parameter supported by Calc and Excel.
- FUNC_PARAM_CALCONLY, /// Parameter supported by Calc only.
- FUNC_PARAM_EXCELONLY /// Parameter supported by Excel only.
+ Regular, /// Parameter supported by Calc and Excel.
+ CalcOnly, /// Parameter supported by Calc only.
+ ExcelOnly /// Parameter supported by Excel only.
};
/** Structure that contains all needed information for a parameter in a
@@ -474,7 +473,7 @@ enum FunctionLibraryType
The member mpParamInfos points to a C-array of type information structures
for all parameters of the function. The last initialized structure
- describing a regular parameter (member meValid == FUNC_PARAM_REGULAR) in
+ describing a regular parameter (member meValid == FuncParamValidity::Regular) in
this array is used repeatedly for all following parameters supported by a
function.
*/