mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-22 19:34:59 +00:00
use ComPtr in gui_context_menus.h (#719)
* use ComPtr in gui_context_menus.h * fix pragma diagnostic * fix compiler warnings
This commit is contained in:
parent
45e206e248
commit
5a4d5b9f31
10 changed files with 15 additions and 29 deletions
|
@ -679,7 +679,7 @@ void CheatsPatches::downloadPatches(const QString repository, const bool showMes
|
|||
request.setRawHeader("Accept", "application/vnd.github.v3+json");
|
||||
QNetworkReply* reply = manager->get(request);
|
||||
|
||||
connect(reply, &QNetworkReply::finished, [=]() {
|
||||
connect(reply, &QNetworkReply::finished, [=, this]() {
|
||||
if (reply->error() == QNetworkReply::NoError) {
|
||||
QByteArray jsonData = reply->readAll();
|
||||
reply->deleteLater();
|
||||
|
@ -712,7 +712,7 @@ void CheatsPatches::downloadPatches(const QString repository, const bool showMes
|
|||
QNetworkRequest fileRequest(downloadUrl);
|
||||
QNetworkReply* fileReply = manager->get(fileRequest);
|
||||
|
||||
connect(fileReply, &QNetworkReply::finished, [=]() {
|
||||
connect(fileReply, &QNetworkReply::finished, [=, this]() {
|
||||
if (fileReply->error() == QNetworkReply::NoError) {
|
||||
QByteArray fileData = fileReply->readAll();
|
||||
QFile localFile(dir.filePath(fileName));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue