fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "aar_application.h"
|
||||
#include <utility>
|
||||
#include "ui_aarApp.h"
|
||||
#include "databases_model.h"
|
||||
|
||||
@@ -44,7 +45,7 @@ AarApplication::AarApplication(QWidget *parent)
|
||||
|
||||
const QList<QScreen*> &screenList = QGuiApplication::screens();
|
||||
m_widgets.reserve(screenList.size());
|
||||
for (QScreen *s : qAsConst(screenList))
|
||||
for (QScreen *s : std::as_const(screenList))
|
||||
{
|
||||
QWidget *w = new QWidget(); // no parent
|
||||
w->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
|
||||
@@ -86,7 +87,7 @@ AarApplication::~AarApplication()
|
||||
delete m_databasesModel;
|
||||
delete m_progressDialog;
|
||||
|
||||
for (QSqlDatabase db : qAsConst(m_dbMap))
|
||||
for (QSqlDatabase db : std::as_const(m_dbMap))
|
||||
db.close();
|
||||
|
||||
m_dbPostgres.close();
|
||||
|
||||
Reference in new issue
Block a user