| Index: Source/wtf/OwnPtrCommon.h
|
| diff --git a/Source/wtf/OwnPtrCommon.h b/Source/wtf/OwnPtrCommon.h
|
| index 5b3414b7975b48c7dbb6f9e2c9e5b513f00efe37..2f685927087e43218b0c61ce436413f564a7547f 100644
|
| --- a/Source/wtf/OwnPtrCommon.h
|
| +++ b/Source/wtf/OwnPtrCommon.h
|
| @@ -47,8 +47,8 @@ template <typename T>
|
| struct OwnedPtrDeleter {
|
| static void deletePtr(T* ptr)
|
| {
|
| - COMPILE_ASSERT(!IsRefCounted<T>::value, UseRefPtrForRefCountedObjects);
|
| - COMPILE_ASSERT(sizeof(T) > 0, TypeMustBeComplete);
|
| + static_assert(!IsRefCounted<T>::value, "Use RefPtr for RefCounted objects");
|
| + static_assert(sizeof(T) > 0, "Type must be complete");
|
| delete ptr;
|
| }
|
| };
|
| @@ -57,15 +57,15 @@ template <typename T>
|
| struct OwnedPtrDeleter<T[]> {
|
| static void deletePtr(T* ptr)
|
| {
|
| - COMPILE_ASSERT(!IsRefCounted<T>::value, UseRefPtrForRefCountedObjects);
|
| - COMPILE_ASSERT(sizeof(T) > 0, TypeMustBeComplete);
|
| + static_assert(!IsRefCounted<T>::value, "Use RefPtr for RefCounted objects");
|
| + static_assert(sizeof(T) > 0, "Type must be complete");
|
| delete[] ptr;
|
| }
|
| };
|
|
|
| template <class T, int n>
|
| struct OwnedPtrDeleter<T[n]> {
|
| - COMPILE_ASSERT(sizeof(T) < 0, DoNotUseArrayWithSizeAsType);
|
| + static_assert(sizeof(T) < 0, "Do not use array with size as type");
|
| };
|
|
|
| } // namespace WTF
|
|
|