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 a01c42f9d05e689ba3e193242b254cdeebed9fe6..b135312e3944f52e458852ebd4372c1df903bca5 100644 |
--- a/mojo/public/cpp/bindings/struct_ptr.h |
+++ b/mojo/public/cpp/bindings/struct_ptr.h |
@@ -228,7 +228,7 @@ template <typename Struct> |
class StructPtrWTFHelper { |
public: |
static bool IsHashTableDeletedValue(const StructPtr<Struct>& value) { |
- return value.ptr_ == reinterpret_cast<Struct*>(1u); |
+ return value.ptr_.get() == reinterpret_cast<Struct*>(1u); |
} |
static void ConstructDeletedValue(mojo::StructPtr<Struct>& slot) { |
@@ -239,7 +239,7 @@ class StructPtrWTFHelper { |
// Dirty trick: implant an invalid pointer in |ptr_|. Destructor isn't |
// called for deleted buckets, so this is okay. |
new (&slot) StructPtr<Struct>(); |
- slot.ptr_ = reinterpret_cast<Struct*>(1u); |
+ slot.ptr_.reset(reinterpret_cast<Struct*>(1u)); |
} |
}; |