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();
|
||||
|
||||
@@ -46,8 +46,7 @@ int main(int argc, char *argv[])
|
||||
QCoreApplication::setApplicationName(QLatin1String("AarApplication"));
|
||||
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());
|
||||
|
||||
@@ -449,9 +449,8 @@ QHash<QString, QUrl> ThpViewer::getCombinedPlaybackDetails(const QUrl &url) cons
|
||||
QDomDocument doc(QStringLiteral("RSS"));
|
||||
if (!file.open(QIODevice::ReadOnly))
|
||||
return hash;
|
||||
QString errorStr;
|
||||
int errorLine, errorColumn;
|
||||
if (!doc.setContent(&file, true, &errorStr, &errorLine, &errorColumn))
|
||||
const auto parseResult = doc.setContent(&file, QDomDocument::ParseOption::UseNamespaceProcessing);
|
||||
if (!parseResult)
|
||||
{
|
||||
file.close();
|
||||
return hash;
|
||||
|
||||
+2
-1
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "thp_situation_widget.h"
|
||||
#include <utility>
|
||||
#include "ui_thp_situation_building_base.h"
|
||||
|
||||
#include "thp_situation_filter_aes.h"
|
||||
@@ -384,7 +385,7 @@ bool SituationWidget::restoreOperatorMapSettingsOverlays(const SituationMap::Ope
|
||||
// So we have to do it here:
|
||||
const QList<int> &orderedOverlayIds = oms.orderedOverlays;
|
||||
DEBUG_LOG(m_logger) << LOGFUNCTION << " restore OverlayIds...";
|
||||
for (auto overlayId : qAsConst(orderedOverlayIds))
|
||||
for (auto overlayId : std::as_const(orderedOverlayIds))
|
||||
{
|
||||
DEBUG_LOG(m_logger) << LOGFUNCTION << " applyNewOverlay , overlayId=" << overlayId;
|
||||
applyNewOverlay(overlayId);
|
||||
|
||||
Reference in new issue
Block a user