Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Unified Diff: mojo/public/cpp/bindings/lib/native_struct.cc

Issue 2604953003: Remove internal uses of mojo::Array and mojo::WTFArray. (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/lib/hash_util.h ('k') | mojo/public/cpp/bindings/lib/serialization.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/native_struct.cc
diff --git a/mojo/public/cpp/bindings/lib/native_struct.cc b/mojo/public/cpp/bindings/lib/native_struct.cc
index 2d60eb0d7e2b42d98b713af65dfd3d3655fc98b2..3c3c2c37f0436e66466c07f669b1006aca6881a2 100644
--- a/mojo/public/cpp/bindings/lib/native_struct.cc
+++ b/mojo/public/cpp/bindings/lib/native_struct.cc
@@ -15,18 +15,18 @@ NativeStructPtr NativeStruct::New() {
return rv;
}
-NativeStruct::NativeStruct() : data(nullptr) {}
+NativeStruct::NativeStruct() {}
NativeStruct::~NativeStruct() {}
NativeStructPtr NativeStruct::Clone() const {
NativeStructPtr rv(New());
- rv->data = data.Clone();
+ rv->data = data;
return rv;
}
bool NativeStruct::Equals(const NativeStruct& other) const {
- return data.Equals(other.data);
+ return data == other.data;
}
size_t NativeStruct::Hash(size_t seed) const {
« no previous file with comments | « mojo/public/cpp/bindings/lib/hash_util.h ('k') | mojo/public/cpp/bindings/lib/serialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698