Skip to content

Commit 2744f5c

Browse files
authored
Value-init fields of WinRT structs (#1443)
1 parent f9ec198 commit 2744f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cppwinrt/code_writers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2716,7 +2716,7 @@ struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable<T, D, %>
27162716

27172717
static void write_struct_field(writer& w, std::pair<std::string_view, std::string> const& field)
27182718
{
2719-
w.write(" @ %;\n",
2719+
w.write(" @ % {};\n",
27202720
field.second,
27212721
field.first);
27222722
}

0 commit comments

Comments
 (0)