summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docmacromode.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-11-08 09:32:58 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-11-08 11:39:34 +0100
commitcc948bae82e63928a70451c6e71beb67e07f06e4 (patch)
treed0c42e726876f8ae5020d7b977d267d8a7ee6ab2 /sfx2/source/doc/docmacromode.cxx
parent89210b46b718edb6fffcbff610a789a5fea522e7 (diff)
Add comments for the magic constants
Change-Id: Ic35758357c18c9d172532819a3e8968fd66b26ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159100 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2/source/doc/docmacromode.cxx')
-rw-r--r--sfx2/source/doc/docmacromode.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/docmacromode.cxx b/sfx2/source/doc/docmacromode.cxx
index e3fe09c35feb..ef9546365451 100644
--- a/sfx2/source/doc/docmacromode.cxx
+++ b/sfx2/source/doc/docmacromode.cxx
@@ -141,16 +141,16 @@ namespace sfx2
switch ( SvtSecurityOptions::GetMacroSecurityLevel() )
{
- case 3:
+ case 3: // "Very high"
nMacroExecutionMode = MacroExecMode::FROM_LIST_NO_WARN;
break;
- case 2:
+ case 2: // "High"
nMacroExecutionMode = MacroExecMode::FROM_LIST_AND_SIGNED_WARN;
break;
- case 1:
+ case 1: // "Medium"
nMacroExecutionMode = MacroExecMode::ALWAYS_EXECUTE;
break;
- case 0:
+ case 0: // "Low"
nMacroExecutionMode = MacroExecMode::ALWAYS_EXECUTE_NO_WARN;
break;
default: