diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-06 15:10:25 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-05-08 06:50:24 +0000 |
commit | cce752b1ba0c7dc3bbfcb77d78b63398246da80a (patch) | |
tree | d8c7c93073aadebea48d4944f8821f46003e671d /include | |
parent | d4f90e1a2ad16ab5bc26e60b0ade02438b358154 (diff) |
convert SHOWDIALOG_ID constants to scoped enum
Change-Id: I58fffa7345f6b5050b8a1b3ac1022c630e64dbb4
Reviewed-on: https://gerrit.libreoffice.org/15651
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/cmdevt.hxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/vcl/cmdevt.hxx b/include/vcl/cmdevt.hxx index 942d45bb443a..fd308eb829ed 100644 --- a/include/vcl/cmdevt.hxx +++ b/include/vcl/cmdevt.hxx @@ -253,21 +253,24 @@ inline CommandModKeyData::CommandModKeyData( sal_uInt16 nCode ) } -// - CommanDialogData - +// - CommandDialogData - -#define SHOWDIALOG_ID_PREFERENCES 1 -#define SHOWDIALOG_ID_ABOUT 2 +enum class ShowDialogId +{ + Preferences = 1, + About = 2, +}; class VCL_DLLPUBLIC CommandDialogData { - int m_nDialogId; - public: - CommandDialogData( int nDialogId = SHOWDIALOG_ID_PREFERENCES ) + ShowDialogId m_nDialogId; +public: + CommandDialogData( ShowDialogId nDialogId = ShowDialogId::Preferences ) : m_nDialogId( nDialogId ) {} - int GetDialogId() const { return m_nDialogId; } + ShowDialogId GetDialogId() const { return m_nDialogId; } }; // Media Commands |