Skip to content

Commit 3774f75

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Fix CQS signal modernize-use-designated-initializers in xplat/js/react-native-github/packages [A] (#53969)
Summary: Pull Request resolved: #53969 Reviewed By: rshest Differential Revision: D83350635 fbshipit-source-id: 48ec748e3ffadd9985daa40895ffbbd1dd40e946
1 parent 279835d commit 3774f75

File tree

11 files changed

+723
-326
lines changed

11 files changed

+723
-326
lines changed

packages/react-native/ReactCommon/cxxreact/ModuleRegistry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ std::optional<ModuleConfig> ModuleRegistry::getConfig(const std::string& name) {
190190
// no constants or methods
191191
return std::nullopt;
192192
} else {
193-
return ModuleConfig{index, std::move(config)};
193+
return ModuleConfig{.index = index, .config = std::move(config)};
194194
}
195195
}
196196

packages/react-native/ReactCommon/cxxreact/RAMBundleRegistry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ JSModulesUnbundle::Module RAMBundleRegistry::getModule(
7070
}
7171

7272
return {
73-
"seg-" + std::to_string(bundleId) + '_' + module.name,
74-
std::move(module.code),
73+
.name = "seg-" + std::to_string(bundleId) + '_' + module.name,
74+
.code = std::move(module.code),
7575
};
7676
}
7777

0 commit comments

Comments
 (0)