Fix couple of warnings

This commit is contained in:
eelke 2024-04-13 09:10:15 +02:00
parent 80f751aeea
commit 4b4c95e57e
2 changed files with 2 additions and 2 deletions

View file

@ -304,5 +304,5 @@ std::function<bool (const PgClass &)> TablesTableModel::GetNamespaceFilterLambda
case NamespaceFilter::InformationSchema:
return [] (const PgClass &c) { return c.ns().objectName() == "information_schema"; };
}
throw std::logic_error("missing case");
}

View file

@ -547,7 +547,7 @@ void CrudModel::revert()
void CrudModel::appendNewRow()
{
int row = m_rowMapping.size();
int row = static_cast<int>(m_rowMapping.size());
beginInsertRows(QModelIndex(), row, row);
m_rowMapping.emplace_back(allocNewRowKey(), std::vector<Value>(m_roData->cols()));
endInsertRows();