summaryrefslogtreecommitdiff
path: root/l10ntools/inc/export.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-19 15:49:47 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-22 17:50:56 +0000
commitc093af75202f6c9d8e6ae7d8e933b82da6f2c11b (patch)
treeb10e2d6c0dc1b6b5f4ef0a4c6a06cec96f97968d /l10ntools/inc/export.hxx
parent20d38addcdd6e4dccd78f2f7ee18ab45a26dd7ed (diff)
Convert LIST to scoped enum
Change-Id: Ia8a1dbf0277c553e8bd7b3a1da5b9f865f076608 Reviewed-on: https://gerrit.libreoffice.org/25195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'l10ntools/inc/export.hxx')
-rw-r--r--l10ntools/inc/export.hxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 52d0ea179c22..6372f907de5a 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -99,11 +99,10 @@ public:
// class Export
-#define LIST_NON 0x0000
-#define LIST_STRING 0x0001
-#define LIST_FILTER 0x0002
-#define LIST_ITEM 0x0004
-#define LIST_PAIRED 0x0005
+enum class ExportListType {
+ NONE, String, Filter, Item, Paired
+};
+
#define STRING_TYP_TEXT 0x0010
#define STRING_TYP_QUICKHELPTEXT 0x0040
#define STRING_TYP_TITLE 0x0080
@@ -127,8 +126,8 @@ private:
bool bDefine; // cur. res. in a define?
bool bNextMustBeDefineEOL; ///< define but no \ at lineend
- std::size_t nLevel; // res. recursiv? how deep?
- sal_uInt16 nList; ///< cur. res. is List
+ std::size_t nLevel; // res. recursive? how deep?
+ ExportListType nList; ///< cur. res. is List
std::size_t nListIndex;
std::size_t nListLevel;
bool bMergeMode;
@@ -142,7 +141,7 @@ private:
ParserQueue* pParseQueue;
void WriteData( ResData *pResData, bool bCreateNew = false ); ///< called before dest. cur ResData
- void WriteExportList( ResData *pResData, ExportList& rExportList, const sal_uInt16 nTyp );
+ void WriteExportList( ResData *pResData, ExportList& rExportList, const ExportListType nTyp );
OString FullId(); ///< creates cur. GID