| Index: Source/wtf/PassRefPtr.h
|
| diff --git a/Source/wtf/PassRefPtr.h b/Source/wtf/PassRefPtr.h
|
| index 363aaa70b68abe59d204480d8a53f6ade943d89b..9ae81bf1cc91b40aea48c7f606c977a40f6f7359 100644
|
| --- a/Source/wtf/PassRefPtr.h
|
| +++ b/Source/wtf/PassRefPtr.h
|
| @@ -93,7 +93,7 @@ namespace WTF {
|
| enum AdoptRefTag { AdoptRef };
|
| PassRefPtr(T* ptr, AdoptRefTag) : m_ptr(ptr) { }
|
|
|
| - PassRefPtr& operator=(const PassRefPtr&) { COMPILE_ASSERT(!sizeof(T*), PassRefPtr_should_never_be_assigned_to); return *this; }
|
| + PassRefPtr& operator=(const PassRefPtr&) { static_assert(!sizeof(T*), "PassRefPtr should never be assigned to"); return *this; }
|
|
|
| mutable T* m_ptr;
|
| };
|
|
|