diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-05-21 15:37:47 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-22 17:53:52 +0000 |
commit | ef0e063938d1821f362a975ae83c2ab212267b98 (patch) | |
tree | 7538dfc1f8c54ab4a90edea815ce6564c8754682 /include/tools | |
parent | a887bed580a3e6388f8da0c5a19fd87888e11e95 (diff) |
Convert RSC_IMAGELIST to scoped enum
Change-Id: Iaf5f0723ab3e23e9afa1836a1b4cd8af2d86f010
Reviewed-on: https://gerrit.libreoffice.org/25257
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/rc.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/tools/rc.h b/include/tools/rc.h index 97e17fb524d9..87c7713935c1 100644 --- a/include/tools/rc.h +++ b/include/tools/rc.h @@ -153,9 +153,14 @@ namespace o3tl { #define RSC_IMAGE_MASKCOLOR 0x04 // For "ImageList": -#define RSC_IMAGELIST_MASKCOLOR 0x04 -#define RSC_IMAGELIST_IDLIST 0x08 -#define RSC_IMAGELIST_IDCOUNT 0x10 +enum class RscImageListFlags { + MaskColor = 0x04, + IdList = 0x08, + IdCount = 0x10 +}; +namespace o3tl { + template<> struct typed_flags<RscImageListFlags> : is_typed_flags<RscImageListFlags, 0x1c> {}; +} // FIXME obsolete, should be removed by MM #define RSC_COLOR (RSC_NOTYPE + 0x16) |