cui/source/options/optsave.hxx |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

New commits:
commit a48561a28741436b03006f100b947403e4cddfc9
Author:     Johann <jlor...@linagora.com>
AuthorDate: Tue Dec 17 09:32:15 2024 +0100
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Mon Jan 6 09:49:28 2025 +0100

    tdf#145614: Convert #define to enum
    
    Change-Id: I5ae1b39c8824f228d148d3df00ba954694a1dee7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178640
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git a/cui/source/options/optsave.hxx b/cui/source/options/optsave.hxx
index 255719184d63..b5ab12d1ace4 100644
--- a/cui/source/options/optsave.hxx
+++ b/cui/source/options/optsave.hxx
@@ -21,14 +21,17 @@
 #include <memory>
 #include <sfx2/tabdlg.hxx>
 
-#define APP_WRITER              0
-#define APP_WRITER_WEB          1
-#define APP_WRITER_GLOBAL       2
-#define APP_CALC                3
-#define APP_IMPRESS             4
-#define APP_DRAW                5
-#define APP_MATH                6
-#define APP_COUNT               7
+enum AppType
+{
+    APP_WRITER            =  0,
+    APP_WRITER_WEB        =  1,
+    APP_WRITER_GLOBAL     =  2,
+    APP_CALC              =  3,
+    APP_IMPRESS           =  4,
+    APP_DRAW              =  5,
+    APP_MATH              =  6,
+    APP_COUNT             =  7,
+};
 
 namespace com::sun::star::beans { struct PropertyValue; }
 

Reply via email to