diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-19 15:41:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-20 07:56:07 +0000 |
commit | fd6e86572abf570c7b8f0618ff4779f213d7b279 (patch) | |
tree | afd4cbe3891b623a12577239210e89171ed1f137 /l10ntools/inc | |
parent | Convert PROP_FLAG to scoped enum (diff) | |
download | core-fd6e86572abf570c7b8f0618ff4779f213d7b279.tar.gz core-fd6e86572abf570c7b8f0618ff4779f213d7b279.zip |
Convert ID_LEVEL to scoped enum
Change-Id: Icdb5f39329ddb94fc1a51e59c8ac99d2684f9cbc
Reviewed-on: https://gerrit.libreoffice.org/25164
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'l10ntools/inc')
-rw-r--r-- | l10ntools/inc/export.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx index c9f0b8bf6ec8..52d0ea179c22 100644 --- a/l10ntools/inc/export.hxx +++ b/l10ntools/inc/export.hxx @@ -59,9 +59,7 @@ typedef std::unordered_map<OString, bool, OStringHash> // class ResData -#define ID_LEVEL_NULL 0x0000 -#define ID_LEVEL_TEXT 0x0002 -#define ID_LEVEL_IDENTIFIER 0x0005 +enum class IdLevel { Null=0, Text=2, Identifier=5 }; typedef std::vector< OString > ExportList; @@ -71,9 +69,9 @@ class ResData public: ResData( const OString &rGId ); ResData( const OString &rGId , const OString &rFilename ); - bool SetId(const OString &rId, sal_uInt16 nLevel); + bool SetId(const OString &rId, IdLevel nLevel); - sal_uInt16 nIdLevel; + IdLevel nIdLevel; bool bChild; bool bChildWithText; |