diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-27 09:19:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-02 08:59:17 +0200 |
commit | f9ba16e44b2813dd1fc9b0e06994f67c6350f050 (patch) | |
tree | c313171846f005e6299c38c47e010bb6daad6e15 /sw/inc/flyenum.hxx | |
parent | 019ab2b00fb022383eaa85e6be66d97504587088 (diff) |
convert SW_CHAIN_ constants to enum class
Change-Id: If3cd86cbb0b01f975456b93b05232e18ec742828
Diffstat (limited to 'sw/inc/flyenum.hxx')
-rw-r--r-- | sw/inc/flyenum.hxx | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/sw/inc/flyenum.hxx b/sw/inc/flyenum.hxx index 743adc2bd00f..469bb13ea6c0 100644 --- a/sw/inc/flyenum.hxx +++ b/sw/inc/flyenum.hxx @@ -30,14 +30,17 @@ enum FlyCntType }; // Return values for chainable and chain. -#define SW_CHAIN_OK 0 -#define SW_CHAIN_NOT_EMPTY 1 ///< Only empty frames may be connected. -#define SW_CHAIN_IS_IN_CHAIN 2 ///< Destination already in chain. -#define SW_CHAIN_WRONG_AREA 3 /**< Destination in section where it shouldn't be - (header, footer). */ -#define SW_CHAIN_NOT_FOUND 4 ///< Destination and/or source not found. -#define SW_CHAIN_SOURCE_CHAINED 5 ///< Source already has a follow. -#define SW_CHAIN_SELF 6 ///< Self-chaining is not allowed. +enum class SwChainRet +{ + OK = 0, + NOT_EMPTY = 1, ///< Only empty frames may be connected. + IS_IN_CHAIN = 2, ///< Destination already in chain. + WRONG_AREA = 3, /**< Destination in section where it shouldn't be + (header, footer). */ + NOT_FOUND = 4, ///< Destination and/or source not found. + SOURCE_CHAINED = 5, ///< Source already has a follow. + SELF = 6 ///< Self-chaining is not allowed. +}; #endif |