Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: sandbox/win/src/policy_params.h

Issue 821693003: replace COMPILE_ASSERT with static_assert in sandbox/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/win/src/policy_low_level.h ('k') | sandbox/win/src/service_resolver_32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/policy_params.h
diff --git a/sandbox/win/src/policy_params.h b/sandbox/win/src/policy_params.h
index 7ded1fcfc470752ba42ac7c3191b1c3ea648bb39..f50cf1e6a166e32b4f2884c6d4e74a1718b71694 100644
--- a/sandbox/win/src/policy_params.h
+++ b/sandbox/win/src/policy_params.h
@@ -32,10 +32,10 @@ POLPARAMS_BEGIN(FileName)
POLPARAM(BROKER) // TRUE if called from the broker.
POLPARAMS_END(FileName)
-COMPILE_ASSERT(OpenFile::NAME == static_cast<int>(FileName::NAME),
- to_simplify_fs_policies);
-COMPILE_ASSERT(OpenFile::BROKER == static_cast<int>(FileName::BROKER),
- to_simplify_fs_policies);
+static_assert(OpenFile::NAME == static_cast<int>(FileName::NAME),
+ "to simplify fs policies");
+static_assert(OpenFile::BROKER == static_cast<int>(FileName::BROKER),
+ "to simplify fs policies");
// Policy parameter for name-based policies.
POLPARAMS_BEGIN(NameBased)
« no previous file with comments | « sandbox/win/src/policy_low_level.h ('k') | sandbox/win/src/service_resolver_32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698