| Index: mojo/public/cpp/bindings/struct_ptr.h
|
| diff --git a/mojo/public/cpp/bindings/struct_ptr.h b/mojo/public/cpp/bindings/struct_ptr.h
|
| index 95aa58112e6cbc09dccfeedb120d8d19dede18c5..4fbd430874ca54f0e4d0fc3afdcd385a59a11e97 100644
|
| --- a/mojo/public/cpp/bindings/struct_ptr.h
|
| +++ b/mojo/public/cpp/bindings/struct_ptr.h
|
| @@ -25,11 +25,10 @@ class StructHelper {
|
|
|
| } // namespace internal
|
|
|
| -// Smart pointer wrapping a mojom structure with move-only semantics.
|
| +// Smart pointer wrapping a mojom structure or union, with move-only semantics.
|
| template <typename Struct>
|
| class StructPtr {
|
| public:
|
| -
|
| StructPtr() : ptr_(nullptr) {}
|
| StructPtr(decltype(nullptr)) : ptr_(nullptr) {}
|
|
|
| @@ -103,11 +102,11 @@ class StructPtr {
|
| MOJO_MOVE_ONLY_TYPE(StructPtr);
|
| };
|
|
|
| -// Designed to be used when Struct is small and copyable.
|
| +// Designed to be used when Struct is small and copyable. Unions are always
|
| +// InlinedStructPtr in practice.
|
| template <typename Struct>
|
| class InlinedStructPtr {
|
| public:
|
| -
|
| InlinedStructPtr() : is_null_(true) {}
|
| InlinedStructPtr(decltype(nullptr)) : is_null_(true) {}
|
|
|
|
|