Mercurial > hg > syntilista
diff src/editperson.cpp @ 285:6f5d2028b882
Use std::move() in QSqlQuery::setQuery().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 09 May 2023 11:23:49 +0300 |
parents | df3f902588af |
children | 0f345852b3ed |
line wrap: on
line diff
--- a/src/editperson.cpp Tue May 09 11:11:10 2023 +0300 +++ b/src/editperson.cpp Tue May 09 11:23:49 2023 +0300 @@ -233,7 +233,7 @@ query.exec(); slCheckAndReportSQLError(query, "SELECT transactions for tableview_Transactions"); - model_Transactions->setQuery(query); + model_Transactions->setQuery(std::move(query)); model_Transactions->setHeaderData(0, Qt::Horizontal, tr("ID")); model_Transactions->setHeaderData(1, Qt::Horizontal, tr("Summa"));