fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -9,6 +9,7 @@
|
||||
*/
|
||||
|
||||
#include "global_updates_model.h"
|
||||
#include <utility>
|
||||
#include <ngldb/nsqlquery.h>
|
||||
#include <ngltools/ngltools_dtg.h>
|
||||
#include <QtCore/QStringList>
|
||||
@@ -47,7 +48,7 @@ bool GlobalUpdatesModel::initModel(const QSqlDatabase &db, const QString &versio
|
||||
DEBUG_LOG(m_logger) << "versionInt: " << versionInt;
|
||||
DEBUG_LOG(m_logger) << "upperVersion: " << upperVersion;
|
||||
|
||||
for (const QString &schema: qAsConst(schemas))
|
||||
for (const QString &schema: std::as_const(schemas))
|
||||
{
|
||||
GlobalUpdate gu;
|
||||
gu.schema = schema;
|
||||
@@ -207,7 +208,7 @@ QStringList GlobalUpdatesModel::getSchemasToUpdate()
|
||||
{
|
||||
QStringList schemas;
|
||||
|
||||
for(const GlobalUpdate &gu : qAsConst(m_vecData))
|
||||
for(const GlobalUpdate &gu : std::as_const(m_vecData))
|
||||
{
|
||||
if (gu.isChecked)
|
||||
schemas << gu.schema;
|
||||
|
||||
Reference in new issue
Block a user