Skip to content

Commit df9a408

Browse files
committed
fix: missed a few {}
1 parent ed0f686 commit df9a408

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

rt_entt_codegen/core/system_provider/system_ctx_functions.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ auto ecsact::rt_entt_codegen::core::provider::context_get_impl(
228228
block(ctx, "", [&] {
229229
ctx.writef(
230230
"auto result = std::unordered_map<ecsact_component_like_id, "
231-
"get_fn_t>{};\n"
231+
"get_fn_t>{{}};\n"
232232
);
233233
for(const auto comp_id : details.readable_comps) {
234234
auto type_name = cpp_identifier(decl_full_name(comp_id));
@@ -295,10 +295,10 @@ auto ecsact::rt_entt_codegen::core::provider::context_update_impl(
295295

296296
ctx.writef("static const auto update_fns = []()\n");
297297

298-
block(ctx, "", [&] {
298+
block(ctx, [&] {
299299
ctx.writef(
300300
"auto result = std::unordered_map<ecsact_component_like_id, "
301-
"update_fn_t>{};\n"
301+
"update_fn_t>{{}};\n"
302302
);
303303
for(const auto comp_id : details.writable_comps) {
304304
auto type_name = cpp_identifier(decl_full_name(comp_id));

rt_entt_codegen/rt_entt_codegen.cc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ void ecsact_codegen_plugin(
181181
for(auto comp_id : details.all_components) {
182182
auto cpp_comp_name = cpp_identifier(decl_full_name(comp_id));
183183
ctx.writef(
184-
"result.insert({::{0}::id, "
185-
"&ecsact::entt::wrapper::core::add_component<::{0}>});\n",
184+
"result.insert({{::{0}::id, "
185+
"&ecsact::entt::wrapper::core::add_component<::{0}>}});\n",
186186
cpp_comp_name
187187
);
188188
}
@@ -201,8 +201,8 @@ void ecsact_codegen_plugin(
201201
for(auto comp_id : details.all_components) {
202202
auto cpp_comp_name = cpp_identifier(decl_full_name(comp_id));
203203
ctx.writef(
204-
"result.insert({::{0}::id, "
205-
"&ecsact::entt::wrapper::core::get_component<::{0}>});\n",
204+
"result.insert({{::{0}::id, "
205+
"&ecsact::entt::wrapper::core::get_component<::{0}>}});\n",
206206
cpp_comp_name
207207
);
208208
}
@@ -227,8 +227,8 @@ void ecsact_codegen_plugin(
227227
for(auto comp_id : non_tag_component_ids) {
228228
auto cpp_comp_name = cpp_identifier(decl_full_name(comp_id));
229229
ctx.writef(
230-
"result.insert({::{0}::id, "
231-
"&ecsact::entt::wrapper::core::update_component<::{0]>});\n",
230+
"result.insert({{::{0}::id, "
231+
"&ecsact::entt::wrapper::core::update_component<::{0]>}});\n",
232232
cpp_comp_name
233233
);
234234
}
@@ -244,8 +244,8 @@ void ecsact_codegen_plugin(
244244
for(auto comp_id : details.all_components) {
245245
auto cpp_comp_name = cpp_identifier(decl_full_name(comp_id));
246246
ctx.writef(
247-
"result.insert({::{0}::id, "
248-
"&ecsact::entt::wrapper::core::remove_component<::{0}>});\n",
247+
"result.insert({{::{0}::id, "
248+
"&ecsact::entt::wrapper::core::remove_component<::{0}>}});\n",
249249
cpp_comp_name
250250
);
251251
}
@@ -261,8 +261,8 @@ void ecsact_codegen_plugin(
261261
for(auto comp_id : details.all_components) {
262262
auto cpp_comp_name = cpp_identifier(decl_full_name(comp_id));
263263
ctx.writef(
264-
"result.insert({::{0}::id, "
265-
"&ecsact::entt::wrapper::core::has_component<::{0}>});\n",
264+
"result.insert({{::{0}::id, "
265+
"&ecsact::entt::wrapper::core::has_component<::{0}>}});\n",
266266
cpp_comp_name
267267
);
268268
}
@@ -291,8 +291,8 @@ void ecsact_codegen_plugin(
291291
for(auto comp_id : stream_components) {
292292
auto cpp_comp_name = cpp_identifier(decl_full_name(comp_id));
293293
ctx.writef(
294-
"result.insert({::{0}::id, "
295-
"&ecsact::entt::wrapper::core::ecsact_stream<::{0}>});\n",
294+
"result.insert({{::{0}::id, "
295+
"&ecsact::entt::wrapper::core::ecsact_stream<::{0}>}});\n",
296296
cpp_comp_name
297297
);
298298
}

0 commit comments

Comments
 (0)