mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
QSqlQuery copy constructor deprecated in Qt6.2 (#4771)
The QSqlQuery assignment and copy constructor are deprecated since Qt6.2, and will be removed in Qt7, see https://doc.qt.io/qt-6/qsqlquery-obsolete.html
This commit is contained in:
@@ -818,7 +818,7 @@ TrainDB::getWorkoutModel
|
||||
|
||||
query.exec();
|
||||
QSqlQueryModel *model = new QSqlQueryModel();
|
||||
model->setQuery(query);
|
||||
model->setQuery(std::move(query));
|
||||
while (model->canFetchMore(QModelIndex())) {
|
||||
model->fetchMore(QModelIndex());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user