summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-06 15:10:25 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-05-08 06:50:24 +0000
commitcce752b1ba0c7dc3bbfcb77d78b63398246da80a (patch)
treed8c7c93073aadebea48d4944f8821f46003e671d /framework
parentd4f90e1a2ad16ab5bc26e60b0ade02438b358154 (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.cxx6
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;