Fix couple of warnings
This commit is contained in:
parent
80f751aeea
commit
4b4c95e57e
2 changed files with 2 additions and 2 deletions
|
|
@ -304,5 +304,5 @@ std::function<bool (const PgClass &)> TablesTableModel::GetNamespaceFilterLambda
|
||||||
case NamespaceFilter::InformationSchema:
|
case NamespaceFilter::InformationSchema:
|
||||||
return [] (const PgClass &c) { return c.ns().objectName() == "information_schema"; };
|
return [] (const PgClass &c) { return c.ns().objectName() == "information_schema"; };
|
||||||
}
|
}
|
||||||
|
throw std::logic_error("missing case");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -547,7 +547,7 @@ void CrudModel::revert()
|
||||||
|
|
||||||
void CrudModel::appendNewRow()
|
void CrudModel::appendNewRow()
|
||||||
{
|
{
|
||||||
int row = m_rowMapping.size();
|
int row = static_cast<int>(m_rowMapping.size());
|
||||||
beginInsertRows(QModelIndex(), row, row);
|
beginInsertRows(QModelIndex(), row, row);
|
||||||
m_rowMapping.emplace_back(allocNewRowKey(), std::vector<Value>(m_roData->cols()));
|
m_rowMapping.emplace_back(allocNewRowKey(), std::vector<Value>(m_roData->cols()));
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue