little bit more code style

This commit is contained in:
pantor
2019-09-14 12:28:55 +02:00
parent fe2ef9ce4e
commit 258def7bf0
5 changed files with 153 additions and 143 deletions
+2 -1
View File
@@ -509,7 +509,8 @@ class Renderer {
for (auto it = level.values.begin(), end = level.values.end(); it != end; ++it) {
level.map_values.emplace_back(it.key(), &it.value());
}
std::sort(level.map_values.begin(), level.map_values.end(), [](const LoopLevel::KeyValue& a, const LoopLevel::KeyValue& b) { return a.first < b.first; });
auto sort_lambda = [](const LoopLevel::KeyValue& a, const LoopLevel::KeyValue& b) { return a.first < b.first; };
std::sort(level.map_values.begin(), level.map_values.end(), sort_lambda);
level.map_it = level.map_values.begin();
} else {
if (!level.values.is_array()) {