summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-05-25 20:15:24 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-26 07:19:41 +0000
commitba91f894cc135ee4ea3a9ba945fb32e27eba2638 (patch)
tree00a54fcefedd6cae7570b3b2abaa41aa7a1e6191 /include/tools
parentcbe78f817da8db78d226b3ad2b1a10d0c2dcf188 (diff)
Convert METRICFIELD to scoped enum
Change-Id: I283d578071af549c0f8f50de728859b6715e47b5 Reviewed-on: https://gerrit.libreoffice.org/25463 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/rc.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/tools/rc.h b/include/tools/rc.h
index b1fd2c081e56..8b6d5ea67daa 100644
--- a/include/tools/rc.h
+++ b/include/tools/rc.h
@@ -105,9 +105,14 @@ namespace o3tl {
#define NUMERICFIELD_LAST 0x02
#define NUMERICFIELD_SPINSIZE 0x04
-#define METRICFIELD_FIRST 0x01
-#define METRICFIELD_LAST 0x02
-#define METRICFIELD_SPINSIZE 0x04
+enum class RscMetricFieldFlags {
+ First = 0x01,
+ Last = 0x02,
+ SpinSize = 0x04
+};
+namespace o3tl {
+ template<> struct typed_flags<RscMetricFieldFlags> : is_typed_flags<RscMetricFieldFlags, 0x07> {};
+}
// For "ToolBoxItem" resources:
#define RSC_TOOLBOXITEM_ID 0x0001