summaryrefslogtreecommitdiffstats
path: root/dom/permission
diff options
context:
space:
mode:
Diffstat (limited to 'dom/permission')
-rw-r--r--dom/permission/PermissionUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/permission/PermissionUtils.cpp b/dom/permission/PermissionUtils.cpp
index 26e3ec0157..604fa01167 100644
--- a/dom/permission/PermissionUtils.cpp
+++ b/dom/permission/PermissionUtils.cpp
@@ -24,7 +24,7 @@ static const nsLiteralCString kPermissionTypes[] = {
// clang-format on
};
-const size_t kPermissionNameCount = PermissionNameValues::Count;
+const size_t kPermissionNameCount = ContiguousEnumSize<PermissionName>::value;
static_assert(MOZ_ARRAY_LENGTH(kPermissionTypes) == kPermissionNameCount,
"kPermissionTypes and PermissionName count should match");