Chromium Code Reviews| Index: Source/platform/CrossThreadCopier.h |
| diff --git a/Source/platform/CrossThreadCopier.h b/Source/platform/CrossThreadCopier.h |
| index a1f593e34c48edfa5132b28b7c595b0961e68641..754e539a08b619072f5699f8bf160051619df242 100644 |
| --- a/Source/platform/CrossThreadCopier.h |
| +++ b/Source/platform/CrossThreadCopier.h |
| @@ -82,10 +82,10 @@ namespace blink { |
| typedef typename WTF::RemovePointer<TypeWithoutPassRefPtr>::Type RefCountedType; |
| // Verify that only one of the above did a change. |
| - COMPILE_ASSERT((WTF::IsSameType<RefPtr<RefCountedType>, T>::value |
| + static_assert((WTF::IsSameType<RefPtr<RefCountedType>, T>::value |
| || WTF::IsSameType<PassRefPtr<RefCountedType>, T>::value |
| || WTF::IsSameType<RefCountedType*, T>::value), |
| - OnlyAllowOneTypeModification); |
| + "Only one type modification should be allowed"); |
|
Nico
2014/12/17 23:24:43
nit: lower-case O (see other review)
Mostyn Bramley-Moore
2014/12/17 23:33:54
Done.
|
| typedef PassRefPtr<RefCountedType> Type; |
| static Type copy(const T& refPtr) |