Index: mojo/public/cpp/bindings/lib/array_traits_wtf.h |
diff --git a/mojo/public/cpp/bindings/lib/array_traits_wtf.h b/mojo/public/cpp/bindings/lib/array_traits_wtf.h |
index 5c15635bc5fd6169298f126d9522fb17daac91dc..0ee128bcd3d2e0ec6d10b530129e3dd90765dc13 100644 |
--- a/mojo/public/cpp/bindings/lib/array_traits_wtf.h |
+++ b/mojo/public/cpp/bindings/lib/array_traits_wtf.h |
@@ -15,6 +15,7 @@ struct ArrayTraits<WTFArray<U>> { |
using Element = U; |
static bool IsNull(const WTFArray<U>& input) { return input.is_null(); } |
+ static void SetToNull(WTFArray<U>* output) { *output = nullptr; } |
static size_t GetSize(const WTFArray<U>& input) { return input.size(); } |
@@ -29,8 +30,6 @@ struct ArrayTraits<WTFArray<U>> { |
} |
static void Resize(WTFArray<U>& input, size_t size) { input.resize(size); } |
- |
- static void SetToNull(WTFArray<U>& input) { input = nullptr; } |
}; |
} // namespace mojo |