Warnings fixes (#541)

* Warnings fixes

* Warnings fixes
This commit is contained in:
¥IGA 2024-08-23 21:38:55 +02:00 committed by GitHub
parent fda2fdae69
commit 0c5b91e1fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 15 additions and 113 deletions

View file

@ -4,17 +4,9 @@
#pragma once
#include <QClipboard>
#include <QCoreApplication>
#include <QDesktopServices>
#include <QFile>
#include <QHeaderView>
#include <QImage>
#include <QMenu>
#include <QMessageBox>
#include <QPixmap>
#include <QStandardPaths>
#include <QTableWidget>
#include <QTextStream>
#include <QTreeWidget>
#include <QTreeWidgetItem>
@ -84,7 +76,7 @@ public:
QTableWidget* tableWidget = new QTableWidget(rows, 2);
tableWidget->setAttribute(Qt::WA_DeleteOnClose);
connect(widget->parent(), &QWidget::destroyed, tableWidget,
[widget, tableWidget]() { tableWidget->deleteLater(); });
[tableWidget]() { tableWidget->deleteLater(); });
tableWidget->verticalHeader()->setVisible(false); // Hide vertical header
int row = 0;
@ -135,7 +127,7 @@ public:
TrophyViewer* trophyViewer = new TrophyViewer(trophyPath, gameTrpPath);
trophyViewer->show();
connect(widget->parent(), &QWidget::destroyed, trophyViewer,
[widget, trophyViewer]() { trophyViewer->deleteLater(); });
[trophyViewer]() { trophyViewer->deleteLater(); });
}
if (selected == &createShortcut) {