This commit is contained in:
Siarhei Fedartsou 2024-05-27 15:42:43 +02:00
parent 383b584ca9
commit 7f747b73ed

View File

@ -416,18 +416,18 @@ class TableAPI final : public BaseAPI
MakeEstimatesTable(const std::vector<TableCellRef> &fallback_speed_cells) const MakeEstimatesTable(const std::vector<TableCellRef> &fallback_speed_cells) const
{ {
util::json::Array json_table; util::json::Array json_table;
std::for_each(fallback_speed_cells.begin(), std::for_each(
fallback_speed_cells.end(), fallback_speed_cells.begin(),
[&](const auto &cell) fallback_speed_cells.end(),
{ [&](const auto &cell)
util::json::Array row; {
util::json::Value jCellRow{util::json::Number(static_cast<double>(cell.row))}; util::json::Array row;
util::json::Value jCellColumn{ util::json::Value jCellRow{util::json::Number(static_cast<double>(cell.row))};
util::json::Number(static_cast<double>(cell.column))}; util::json::Value jCellColumn{util::json::Number(static_cast<double>(cell.column))};
row.values.push_back(jCellRow); row.values.push_back(jCellRow);
row.values.push_back(jCellColumn); row.values.push_back(jCellColumn);
json_table.values.push_back(util::json::Value{row}); json_table.values.push_back(util::json::Value{row});
}); });
return json_table; return json_table;
} }