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

View File

@ -416,14 +416,14 @@ 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.begin(),
fallback_speed_cells.end(), fallback_speed_cells.end(),
[&](const auto &cell) [&](const auto &cell)
{ {
util::json::Array row; util::json::Array row;
util::json::Value jCellRow{util::json::Number(static_cast<double>(cell.row))}; util::json::Value jCellRow{util::json::Number(static_cast<double>(cell.row))};
util::json::Value jCellColumn{ util::json::Value jCellColumn{util::json::Number(static_cast<double>(cell.column))};
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});