More clazy fixes

This commit is contained in:
Tobias Fella 2020-05-10 23:29:53 +02:00
parent b91171e21f
commit a4b456efb2
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ QVariant EntryListModel::data(const QModelIndex &index, int role) const
{ {
if (role == Updated || role == Created) { if (role == Updated || role == Created) {
QDateTime updated; QDateTime updated;
updated.setSecsSinceEpoch(QSqlQueryModel::data(createIndex(index.row(), role), 0).toInt()); updated.setSecsSinceEpoch(QSqlTableModel::data(createIndex(index.row(), role), 0).toInt());
return updated; return updated;
} }
return QSqlQueryModel::data(createIndex(index.row(), role), 0); return QSqlQueryModel::data(createIndex(index.row(), role), 0);

View File

@ -59,7 +59,7 @@ void FeedListModel::addFeed(QString url)
QSqlRecord rec = record(); QSqlRecord rec = record();
rec.setValue(0, url); rec.setValue(0, url);
rec.setValue(1, url); rec.setValue(1, url);
rec.setValue(2, QStringLiteral("")); rec.setValue(2, QLatin1String(""));
insertRecord(-1, rec); insertRecord(-1, rec);