From 8447eeb192acf7e3255f7fdf92977470b28a18f9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 28 Dec 2014 15:07:40 +0200 Subject: fdo#84938: convert ERROR_ #defines to 'enum class' Change-Id: Ie76bac6b91a9faa4f9ff7dbdf2b455ea9016cf72 --- include/xmloff/xmlerror.hxx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'include/xmloff/xmlerror.hxx') diff --git a/include/xmloff/xmlerror.hxx b/include/xmloff/xmlerror.hxx index 8b621192a821..3726eb23a19d 100644 --- a/include/xmloff/xmlerror.hxx +++ b/include/xmloff/xmlerror.hxx @@ -22,6 +22,7 @@ #include #include +#include #include @@ -79,11 +80,16 @@ // 16bit error flag constants for use in the // SvXMLExport/SvXMLImport error flags -#define ERROR_NO 0x0000 -#define ERROR_DO_NOTHING 0x0001 -#define ERROR_ERROR_OCCURRED 0x0002 -#define ERROR_WARNING_OCCURRED 0x0004 - +enum class SvXMLErrorFlags { + NO = 0x0000, + DO_NOTHING = 0x0001, + ERROR_OCCURRED = 0x0002, + WARNING_OCCURRED = 0x0004, +}; +namespace o3tl +{ + template<> struct typed_flags : is_typed_flags {}; +} -- cgit