diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-01-01 14:21:34 +0000 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-01-01 16:03:10 +0000 |
commit | f1151648b3df1b76e3308c288f12b4dd1414e92e (patch) | |
tree | 447d0216948522d088fb8c3a10b355708e889f07 /sfx2 | |
parent | 7b7e3392069716539a1a3a9d453e57f681b6e7d5 (diff) |
Avoid unneeded initialization, and use URLZONE ids
Change-Id: I8c6f31865b992fab0739fbefed5d39f21d0fa664
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144904
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docmacromode.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/doc/docmacromode.cxx b/sfx2/source/doc/docmacromode.cxx index cbd720132323..976fc53414ed 100644 --- a/sfx2/source/doc/docmacromode.cxx +++ b/sfx2/source/doc/docmacromode.cxx @@ -303,25 +303,25 @@ namespace sfx2 { // no Security Zone info found -> assume a local file, not // from the internet - dwZone = 0; + dwZone = URLZONE_LOCAL_MACHINE; } // determine action from zone and settings - sal_Int32 nAction = 0; + sal_Int32 nAction; switch (dwZone) { - case 0: + case URLZONE_LOCAL_MACHINE: nAction = officecfg::Office::Common::Security::Scripting::WindowsSecurityZone::ZoneLocal::get(); break; - case 1: + case URLZONE_INTRANET: nAction = officecfg::Office::Common::Security::Scripting::WindowsSecurityZone::ZoneIntranet::get(); break; - case 2: + case URLZONE_TRUSTED: nAction = officecfg::Office::Common::Security::Scripting::WindowsSecurityZone::ZoneTrusted::get(); break; - case 3: + case URLZONE_INTERNET: nAction = officecfg::Office::Common::Security::Scripting::WindowsSecurityZone::ZoneInternet::get(); break; - case 4: + case URLZONE_UNTRUSTED: nAction = officecfg::Office::Common::Security::Scripting::WindowsSecurityZone::ZoneUntrusted::get(); break; default: |