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 "exercises_model.h"
|
||||
#include <utility>
|
||||
|
||||
#include <ngltools/ngltools_dtg.h>
|
||||
#include <ngldb/nsqlquery.h>
|
||||
@@ -243,7 +244,7 @@ QStringList ExercisesModel::getSchemasToUpdate()
|
||||
{
|
||||
QStringList schemas;
|
||||
|
||||
for(const ExerciseUpdate &eu : qAsConst(m_vecData))
|
||||
for(const ExerciseUpdate &eu : std::as_const(m_vecData))
|
||||
{
|
||||
if (eu.isChecked)
|
||||
schemas << eu.schema;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -71,8 +71,7 @@ int main(int argc, char *argv[])
|
||||
QCoreApplication::setApplicationName(QLatin1String("DBUpdate"));
|
||||
QCoreApplication::setOrganizationName(QLatin1String("RME"));
|
||||
|
||||
if (!bHeadless)
|
||||
app->setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
// Qt::AA_UseHighDpiPixmaps: no-op since Qt6 (high-DPI pixmaps are always enabled)
|
||||
|
||||
NGL::LoggerHandler *lh = dynamic_cast<NGL::LoggerHandler*>(app.data());
|
||||
lh->createLogger("dbu", "log4cxx_dbu.props");
|
||||
|
||||
Reference in new issue
Block a user