mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-17 21:16:38 +00:00
clangformat
This commit is contained in:
parent
71a6b26b4f
commit
a5580718f7
1 changed files with 9 additions and 8 deletions
|
@ -1237,14 +1237,15 @@ namespace MWScript
|
|||
// sort for user convenience
|
||||
std::map<ESM::RefId, std::shared_ptr<GlobalScriptDesc>> globalScripts(scripts.begin(), scripts.end());
|
||||
|
||||
auto printVariables = [&str](std::string_view scptName, const auto& names, const auto& values,
|
||||
std::string_view type) {
|
||||
size_t size = std::min(names.size(), values.size());
|
||||
for (size_t i = 0; i < size; ++i)
|
||||
{
|
||||
str << std::endl << " " << scptName << "->" << names[i] << " = " << values[i] << " (" << type << ")";
|
||||
}
|
||||
};
|
||||
auto printVariables
|
||||
= [&str](std::string_view scptName, const auto& names, const auto& values, std::string_view type) {
|
||||
size_t size = std::min(names.size(), values.size());
|
||||
for (size_t i = 0; i < size; ++i)
|
||||
{
|
||||
str << std::endl
|
||||
<< " " << scptName << "->" << names[i] << " = " << values[i] << " (" << type << ")";
|
||||
}
|
||||
};
|
||||
|
||||
for (const auto& [refId, script] : globalScripts)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue