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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_declaration.tmpl

Issue 2339413004: Allow Mojo structs as map keys (Closed)
Patch Set: Remove left-over import Created 4 years, 3 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/tools/bindings/generators/cpp_templates/struct_serialization_declaration.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_declaration.tmpl
index 8e08d6a2d575eefd2bae6fe05d0468d144e1c297..835178bedae39f0ac09d1dc871165602c3efe8fe 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_declaration.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_declaration.tmpl
@@ -37,7 +37,7 @@ struct Serializer<{{data_view}}, MaybeConstUserType> {
{{struct_macros.serialize(
struct, struct.name ~ " struct",
"CallWithContext(Traits::%s, input, custom_context)", "result",
- "buffer", "context", True)|indent(4)}}
+ "buffer", "context", True)|indent(2)}}
*output = result;
CustomContextHelper<Traits>::TearDown(input, custom_context);

Powered by Google App Engine
This is Rietveld 408576698