Index: public/platform/WebPrivatePtr.h |
diff --git a/public/platform/WebPrivatePtr.h b/public/platform/WebPrivatePtr.h |
index 360f646d876582ef2c3c315f33f42a21adfb5735..07b84db35c5dccc9f6e46def38fbe1f358cb8d75 100644 |
--- a/public/platform/WebPrivatePtr.h |
+++ b/public/platform/WebPrivatePtr.h |
@@ -138,13 +138,13 @@ class PtrStorage : public PtrStorageImpl<T, LifetimeOf<T>::value> { |
public: |
static PtrStorage& fromSlot(void** slot) |
{ |
- COMPILE_ASSERT(sizeof(PtrStorage) == sizeof(void*), PtrStorage_must_be_pointer_size); |
+ static_assert(sizeof(PtrStorage) == sizeof(void*), "PtrStorage must be the size of a pointer"); |
return *reinterpret_cast<PtrStorage*>(slot); |
} |
static const PtrStorage& fromSlot(void* const* slot) |
{ |
- COMPILE_ASSERT(sizeof(PtrStorage) == sizeof(void*), PtrStorage_must_be_pointer_size); |
+ static_assert(sizeof(PtrStorage) == sizeof(void*), "PtrStorage must be the size of a pointer"); |
return *reinterpret_cast<const PtrStorage*>(slot); |
} |