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

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

Issue 2689513003: Add field-initializing constructors to generated mojo structs. (Closed)
Patch Set: Created 3 years, 10 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
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 3c3c2c37f0436e66466c07f669b1006aca6881a2..7b1a1a6c594f6429cd58bdd7aecd537c1bd68f26 100644
--- a/mojo/public/cpp/bindings/lib/native_struct.cc
+++ b/mojo/public/cpp/bindings/lib/native_struct.cc
@@ -10,9 +10,7 @@ namespace mojo {
// static
NativeStructPtr NativeStruct::New() {
- NativeStructPtr rv;
- internal::StructHelper<NativeStruct>::Initialize(&rv);
- return rv;
+ return NativeStructPtr(base::in_place);
}
NativeStruct::NativeStruct() {}

Powered by Google App Engine
This is Rietveld 408576698