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 /framework | |
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 'framework')
-rw-r--r-- | framework/source/dispatch/windowcommanddispatch.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/dispatch/windowcommanddispatch.cxx b/framework/source/dispatch/windowcommanddispatch.cxx index 7f961e798204..69205499dcee 100644 --- a/framework/source/dispatch/windowcommanddispatch.cxx +++ b/framework/source/dispatch/windowcommanddispatch.cxx @@ -114,16 +114,16 @@ IMPL_LINK(WindowCommandDispatch, impl_notifyCommand, void*, pParam) if ( ! pData) return 0L; - const int nCommand = pData->GetDialogId(); + const ShowDialogId nCommand = pData->GetDialogId(); OUString sCommand; switch (nCommand) { - case SHOWDIALOG_ID_PREFERENCES : + case ShowDialogId::Preferences : sCommand = ".uno:OptionsTreeDialog"; break; - case SHOWDIALOG_ID_ABOUT : + case ShowDialogId::About : sCommand = ".uno:About"; break; |