diff -r 37d3c819cafa -r 2837b549e616 src/main.cpp --- a/src/main.cpp Wed Jun 22 16:13:15 2022 +0300 +++ b/src/main.cpp Wed Jun 22 16:53:35 2022 +0300 @@ -272,7 +272,7 @@ } ui->actionDrawAxes->setChecked(renderPreferences->drawAxes); ui->actionWireframe->setChecked(renderPreferences->wireframe); -}; +} static gl::RenderPreferences loadRenderPreferences() { @@ -353,7 +353,7 @@ std::vector rows(const QModelIndexList& indexList) { std::vector result; - result.reserve(indexList.size()); + result.reserve(unsigned_cast(indexList.size())); for (const QModelIndex& index : indexList) { result.push_back(index.row()); @@ -467,7 +467,7 @@ ModelData* data = findModelData(&documents, modelId); if (data != nullptr) { auto resolveIndex = [&data](const QModelIndex& index){ - return data->model->idAt(index.row()); + return data->model->idAt(unsigned_cast(index.row())); }; const auto selection = data->itemSelectionModel->selection(); const auto indices = fn::map>(selection.indexes(), resolveIndex); @@ -606,7 +606,7 @@ std::vector selectedRows = rows(ui.modelListView->selectionModel()->selectedRows()); std::sort(selectedRows.begin(), selectedRows.end(), std::greater{}); for (int row : selectedRows) { - executeAction(model, DeleteFromModel{.position = row}); + executeAction(model, DeleteFromModel{.position = unsigned_cast(row)}); } } });