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

Unified Diff: public/platform/WebDeviceMotionData.h

Issue 802633005: replace COMPILE_ASSERT with static_assert in public/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: improve static_assert msgs Created 6 years 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 | « no previous file | public/platform/WebDeviceOrientationData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebDeviceMotionData.h
diff --git a/public/platform/WebDeviceMotionData.h b/public/platform/WebDeviceMotionData.h
index dc40e40122d3f1d656093003327e0d1e2fc91cca..05f49698b0ed25705e4b2bc0fc6af291a210a0ae 100644
--- a/public/platform/WebDeviceMotionData.h
+++ b/public/platform/WebDeviceMotionData.h
@@ -76,7 +76,7 @@ public:
};
#if INSIDE_BLINK
-COMPILE_ASSERT(sizeof(WebDeviceMotionData) == (10 * sizeof(double) + 2 * sizeof(char)), WebDeviceMotionData_has_wrong_size);
+static_assert(sizeof(WebDeviceMotionData) == (10 * sizeof(double) + 2 * sizeof(char)), "WebDeviceMotionData has wrong size");
#endif
#pragma pack(pop)
« no previous file with comments | « no previous file | public/platform/WebDeviceOrientationData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698