diff --git a/pglab/catalog/tables/TablesTableModel.cpp b/pglab/catalog/tables/TablesTableModel.cpp index 244762b..0df8ff2 100644 --- a/pglab/catalog/tables/TablesTableModel.cpp +++ b/pglab/catalog/tables/TablesTableModel.cpp @@ -304,5 +304,5 @@ std::function TablesTableModel::GetNamespaceFilterLambda case NamespaceFilter::InformationSchema: return [] (const PgClass &c) { return c.ns().objectName() == "information_schema"; }; } - + throw std::logic_error("missing case"); } diff --git a/pglab/crud/CrudModel.cpp b/pglab/crud/CrudModel.cpp index 90935d7..344f7c6 100644 --- a/pglab/crud/CrudModel.cpp +++ b/pglab/crud/CrudModel.cpp @@ -547,7 +547,7 @@ void CrudModel::revert() void CrudModel::appendNewRow() { - int row = m_rowMapping.size(); + int row = static_cast(m_rowMapping.size()); beginInsertRows(QModelIndex(), row, row); m_rowMapping.emplace_back(allocNewRowKey(), std::vector(m_roData->cols())); endInsertRows();