1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-02 03:34:35 +00:00

clangformat

This commit is contained in:
Kindi 2025-04-05 11:26:34 +08:00
parent 71a6b26b4f
commit a5580718f7

View file

@ -1237,12 +1237,13 @@ namespace MWScript
// sort for user convenience // sort for user convenience
std::map<ESM::RefId, std::shared_ptr<GlobalScriptDesc>> globalScripts(scripts.begin(), scripts.end()); 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, auto printVariables
std::string_view type) { = [&str](std::string_view scptName, const auto& names, const auto& values, std::string_view type) {
size_t size = std::min(names.size(), values.size()); size_t size = std::min(names.size(), values.size());
for (size_t i = 0; i < size; ++i) for (size_t i = 0; i < size; ++i)
{ {
str << std::endl << " " << scptName << "->" << names[i] << " = " << values[i] << " (" << type << ")"; str << std::endl
<< " " << scptName << "->" << names[i] << " = " << values[i] << " (" << type << ")";
} }
}; };