summaryrefslogtreecommitdiff
path: root/sd/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-01 08:55:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-01 09:37:34 +0200
commiteed94d15a49ad2038a59a3a1bfaa4a66a27ed540 (patch)
tree534c1c64866ca88dc9172531fa3b2029d3c316bc /sd/inc
parent61decd49f6491966ec996cad4e39b08b9bb58d91 (diff)
convert PresChange to scoped enum
Change-Id: I8184e436ae9c0fd2cb78a94b3146ab1903453f72 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91459 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/inc')
-rw-r--r--sd/inc/diadef.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/sd/inc/diadef.h b/sd/inc/diadef.h
index 0da1bd899d35..e09cab69649d 100644
--- a/sd/inc/diadef.h
+++ b/sd/inc/diadef.h
@@ -20,16 +20,14 @@
#ifndef INCLUDED_SD_INC_DIADEF_H
#define INCLUDED_SD_INC_DIADEF_H
-enum PresChange
+enum class PresChange
{
- PRESCHANGE_MANUAL = 0,
- PRESCHANGE_AUTO = 1,
- PRESCHANGE_SEMIAUTO = 2
+ Manual = 0,
+ Auto = 1,
+ SemiAuto = 2,
+ LAST = SemiAuto
};
-// has to be adjusted
-#define PRESCHANGE_COUNT 3
-
#endif // INCLUDED_SD_INC_DIADEF_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */