summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-05-25 20:33:30 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-26 07:22:01 +0000
commit12eec0ce0ce0d2008e80f294c4b2d4d3e6e3ef55 (patch)
tree2ed75302689433c31897df0d4bc28a58e43464ba /include/tools
parentba91f894cc135ee4ea3a9ba945fb32e27eba2638 (diff)
Convert METRICFORMATTER to scoped enum
Change-Id: If7004e0ca3f2dc229b1b36c07811eef09456b437 Reviewed-on: https://gerrit.libreoffice.org/25464 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/rc.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/tools/rc.h b/include/tools/rc.h
index 8b6d5ea67daa..f39e0e7388fb 100644
--- a/include/tools/rc.h
+++ b/include/tools/rc.h
@@ -98,8 +98,13 @@ namespace o3tl {
template<> struct typed_flags<RscNumFormatterFlags> : is_typed_flags<RscNumFormatterFlags, 0x37> {};
}
-#define METRICFORMATTER_UNIT 0x01
-#define METRICFORMATTER_CUSTOMUNITTEXT 0x02
+enum class RscMetricFormatterFlags {
+ Unit = 0x01,
+ CustomUnitText = 0x02
+};
+namespace o3tl {
+ template<> struct typed_flags<RscMetricFormatterFlags> : is_typed_flags<RscMetricFormatterFlags, 0x03> {};
+}
#define NUMERICFIELD_FIRST 0x01
#define NUMERICFIELD_LAST 0x02