Skip to content

Commit 1214ad7

Browse files
Update HttpRequest.cpp.mustache - use stable 4-parameter connect (#18893)
* Update HttpRequest.cpp.mustache Use stable 4-parameter connect * add generated files * Revert "add generated files" This reverts commit 1d4e78a. * changed from 3- to 4-parameter connect for api-body for stable connection (see warning [clazy-connect-3arg-lambda]) * ran step 3 from Linux * fixed missing braces and additional 3par issues * add step 3 generated file * activate trace for more info about link issue * Update .github/workflows/samples-cpp-qt-client.yaml Co-authored-by: Martin Delille <martin@delille.org> * Update .github/workflows/samples-cpp-qt-client.yaml Co-authored-by: Martin Delille <martin@delille.org> * Update samples/client/petstore/cpp-qt/client/PFXPetApi.cpp Co-authored-by: Martin Delille <martin@delille.org> * Update modules/openapi-generator/src/main/resources/cpp-qt-client/HttpRequest.cpp.mustache Co-authored-by: Martin Delille <martin@delille.org> * Update modules/openapi-generator/src/main/resources/cpp-qt-client/HttpRequest.cpp.mustache Co-authored-by: Martin Delille <martin@delille.org> * Update modules/openapi-generator/src/main/resources/cpp-qt-client/api-body.mustache Co-authored-by: Martin Delille <martin@delille.org> * Update modules/openapi-generator/src/main/resources/cpp-qt-client/api-body.mustache Co-authored-by: Martin Delille <martin@delille.org> * Update modules/openapi-generator/src/main/resources/cpp-qt-client/api-body.mustache Co-authored-by: Martin Delille <martin@delille.org> * Update samples/client/petstore/cpp-qt/client/PFXPetApi.cpp Co-authored-by: Martin Delille <martin@delille.org> * Update samples/client/petstore/cpp-qt/client/PFXPetApi.cpp Co-authored-by: Martin Delille <martin@delille.org> * Update samples/client/petstore/cpp-qt/client/PFXPetApi.cpp Co-authored-by: Martin Delille <martin@delille.org> * Update samples/client/petstore/cpp-qt/client/PFXPetApi.cpp Co-authored-by: Martin Delille <martin@delille.org> * rebuild examples * Update modules/openapi-generator/src/main/resources/cpp-qt-client/api-body.mustache Co-authored-by: Martin Delille <martin@delille.org> * removed braces and updated examples * rebuild samples * remove false generated changes --------- Co-authored-by: Martin Delille <martin@delille.org>
1 parent 4ddfb6f commit 1214ad7

12 files changed

Lines changed: 71 additions & 71 deletions

File tree

modules/openapi-generator/src/main/resources/cpp-qt-client/HttpRequest.cpp.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,12 @@ void {{prefix}}HttpRequestWorker::execute({{prefix}}HttpRequestInput *input) {
353353
if (reply != nullptr) {
354354
reply->setParent(this);
355355
connect(reply, &QNetworkReply::downloadProgress, this, &{{prefix}}HttpRequestWorker::downloadProgress);
356-
connect(reply, &QNetworkReply::finished, [this, reply] {
356+
connect(reply, &QNetworkReply::finished, this, [this, reply] {
357357
on_reply_finished(reply);
358358
});
359359
}
360360
if (timeOutTimer.interval() > 0) {
361-
QObject::connect(&timeOutTimer, &QTimer::timeout, [this, reply] {
361+
QObject::connect(&timeOutTimer, &QTimer::timeout, this, [this, reply] {
362362
on_reply_timeout(reply);
363363
});
364364
timeOutTimer.start();

modules/openapi-generator/src/main/resources/cpp-qt-client/api-body.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ void {{classname}}::{{nickname}}({{#allParams}}{{#required}}const {{{dataType}}}
664664
connect(worker, &{{prefix}}HttpRequestWorker::downloadProgress, this, &{{classname}}::{{nickname}}Progress);{{/addDownloadProgress}}
665665
connect(worker, &{{prefix}}HttpRequestWorker::on_execution_finished, this, &{{classname}}::{{nickname}}Callback);
666666
connect(this, &{{classname}}::abortRequestsSignal, worker, &QObject::deleteLater);
667-
connect(worker, &QObject::destroyed, this, [this]() {
667+
connect(worker, &QObject::destroyed, this, [this] {
668668
if (findChildren<{{prefix}}HttpRequestWorker*>().count() == 0) {
669669
Q_EMIT allPendingRequestsCompleted();
670670
}
@@ -690,7 +690,7 @@ void {{classname}}::{{nickname}}({{#allParams}}{{#required}}const {{{dataType}}}
690690

691691
connect(_latestWorker, &{{prefix}}HttpRequestWorker::on_execution_finished, this, &{{classname}}::{{nickname}}Callback);
692692
connect(this, &{{classname}}::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
693-
connect(_latestWorker, &QObject::destroyed, [this](){
693+
connect(_latestWorker, &QObject::destroyed, this, [this] {
694694
if(findChildren<{{prefix}}HttpRequestWorker*>().count() == 0){
695695
Q_EMIT allPendingRequestsCompleted();
696696
}
@@ -720,7 +720,7 @@ void {{classname}}::{{nickname}}({{#allParams}}{{#required}}const {{{dataType}}}
720720

721721
connect(_latestWorker, &{{prefix}}HttpRequestWorker::on_execution_finished, this, &{{classname}}::{{nickname}}Callback);
722722
connect(this, &{{classname}}::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
723-
connect(_latestWorker, &QObject::destroyed, [this](){
723+
connect(_latestWorker, &QObject::destroyed, this, [this] {
724724
if(findChildren<{{prefix}}HttpRequestWorker*>().count() == 0){
725725
Q_EMIT allPendingRequestsCompleted();
726726
}
@@ -750,7 +750,7 @@ void {{classname}}::{{nickname}}({{#allParams}}{{#required}}const {{{dataType}}}
750750

751751
connect(_latestWorker, &{{prefix}}HttpRequestWorker::on_execution_finished, this, &{{classname}}::{{nickname}}Callback);
752752
connect(this, &{{classname}}::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
753-
connect(_latestWorker, &QObject::destroyed, [this](){
753+
connect(_latestWorker, &QObject::destroyed, this, [this] {
754754
if(findChildren<{{prefix}}HttpRequestWorker*>().count() == 0){
755755
Q_EMIT allPendingRequestsCompleted();
756756
}
@@ -780,7 +780,7 @@ void {{classname}}::{{nickname}}({{#allParams}}{{#required}}const {{{dataType}}}
780780

781781
connect(_latestWorker, &{{prefix}}HttpRequestWorker::on_execution_finished, this, &{{classname}}::{{nickname}}Callback);
782782
connect(this, &{{classname}}::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
783-
connect(_latestWorker, &QObject::destroyed, [this](){
783+
connect(_latestWorker, &QObject::destroyed, this, [this] {
784784
if(findChildren<{{prefix}}HttpRequestWorker*>().count() == 0){
785785
Q_EMIT allPendingRequestsCompleted();
786786
}

samples/client/petstore/cpp-qt-addDownloadProgress/client/PFXHttpRequest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,12 @@ void PFXHttpRequestWorker::execute(PFXHttpRequestInput *input) {
360360
if (reply != nullptr) {
361361
reply->setParent(this);
362362
connect(reply, &QNetworkReply::downloadProgress, this, &PFXHttpRequestWorker::downloadProgress);
363-
connect(reply, &QNetworkReply::finished, [this, reply] {
363+
connect(reply, &QNetworkReply::finished, this, [this, reply] {
364364
on_reply_finished(reply);
365365
});
366366
}
367367
if (timeOutTimer.interval() > 0) {
368-
QObject::connect(&timeOutTimer, &QTimer::timeout, [this, reply] {
368+
QObject::connect(&timeOutTimer, &QTimer::timeout, this, [this, reply] {
369369
on_reply_timeout(reply);
370370
});
371371
timeOutTimer.start();

samples/client/petstore/cpp-qt-addDownloadProgress/client/PFXPetApi.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void PFXPetApi::addPet(const PFXPet &pfx_pet) {
243243
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPetApi::addPetProgress);
244244
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::addPetCallback);
245245
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
246-
connect(worker, &QObject::destroyed, this, [this]() {
246+
connect(worker, &QObject::destroyed, this, [this] {
247247
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
248248
Q_EMIT allPendingRequestsCompleted();
249249
}
@@ -266,7 +266,7 @@ void PFXPetApi::addPet(const PFXPet &pfx_pet) {
266266

267267
connect(_latestWorker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::addPetCallback);
268268
connect(this, &PFXPetApi::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
269-
connect(_latestWorker, &QObject::destroyed, [this](){
269+
connect(_latestWorker, &QObject::destroyed, this, [this] {
270270
if(findChildren<PFXHttpRequestWorker*>().count() == 0){
271271
Q_EMIT allPendingRequestsCompleted();
272272
}
@@ -352,7 +352,7 @@ void PFXPetApi::allPets() {
352352
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPetApi::allPetsProgress);
353353
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::allPetsCallback);
354354
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
355-
connect(worker, &QObject::destroyed, this, [this]() {
355+
connect(worker, &QObject::destroyed, this, [this] {
356356
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
357357
Q_EMIT allPendingRequestsCompleted();
358358
}
@@ -451,7 +451,7 @@ void PFXPetApi::deletePet(const qint64 &pet_id, const ::test_namespace::Optional
451451
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPetApi::deletePetProgress);
452452
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::deletePetCallback);
453453
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
454-
connect(worker, &QObject::destroyed, this, [this]() {
454+
connect(worker, &QObject::destroyed, this, [this] {
455455
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
456456
Q_EMIT allPendingRequestsCompleted();
457457
}
@@ -474,7 +474,7 @@ void PFXPetApi::deletePet(const qint64 &pet_id, const ::test_namespace::Optional
474474

475475
connect(_latestWorker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::deletePetCallback);
476476
connect(this, &PFXPetApi::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
477-
connect(_latestWorker, &QObject::destroyed, [this](){
477+
connect(_latestWorker, &QObject::destroyed, this, [this] {
478478
if(findChildren<PFXHttpRequestWorker*>().count() == 0){
479479
Q_EMIT allPendingRequestsCompleted();
480480
}
@@ -646,7 +646,7 @@ void PFXPetApi::findPetsByStatus(const QList<QString> &status) {
646646
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPetApi::findPetsByStatusProgress);
647647
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::findPetsByStatusCallback);
648648
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
649-
connect(worker, &QObject::destroyed, this, [this]() {
649+
connect(worker, &QObject::destroyed, this, [this] {
650650
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
651651
Q_EMIT allPendingRequestsCompleted();
652652
}
@@ -669,7 +669,7 @@ void PFXPetApi::findPetsByStatus(const QList<QString> &status) {
669669

670670
connect(_latestWorker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::findPetsByStatusCallback);
671671
connect(this, &PFXPetApi::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
672-
connect(_latestWorker, &QObject::destroyed, [this](){
672+
connect(_latestWorker, &QObject::destroyed, this, [this] {
673673
if(findChildren<PFXHttpRequestWorker*>().count() == 0){
674674
Q_EMIT allPendingRequestsCompleted();
675675
}
@@ -851,7 +851,7 @@ void PFXPetApi::findPetsByTags(const QList<QString> &tags) {
851851
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPetApi::findPetsByTagsProgress);
852852
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::findPetsByTagsCallback);
853853
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
854-
connect(worker, &QObject::destroyed, this, [this]() {
854+
connect(worker, &QObject::destroyed, this, [this] {
855855
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
856856
Q_EMIT allPendingRequestsCompleted();
857857
}
@@ -874,7 +874,7 @@ void PFXPetApi::findPetsByTags(const QList<QString> &tags) {
874874

875875
connect(_latestWorker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::findPetsByTagsCallback);
876876
connect(this, &PFXPetApi::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
877-
connect(_latestWorker, &QObject::destroyed, [this](){
877+
connect(_latestWorker, &QObject::destroyed, this, [this] {
878878
if(findChildren<PFXHttpRequestWorker*>().count() == 0){
879879
Q_EMIT allPendingRequestsCompleted();
880880
}
@@ -988,7 +988,7 @@ void PFXPetApi::getPetById(const qint64 &pet_id) {
988988
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPetApi::getPetByIdProgress);
989989
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::getPetByIdCallback);
990990
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
991-
connect(worker, &QObject::destroyed, this, [this]() {
991+
connect(worker, &QObject::destroyed, this, [this] {
992992
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
993993
Q_EMIT allPendingRequestsCompleted();
994994
}
@@ -1063,7 +1063,7 @@ void PFXPetApi::updatePet(const PFXPet &pfx_pet) {
10631063
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPetApi::updatePetProgress);
10641064
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::updatePetCallback);
10651065
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
1066-
connect(worker, &QObject::destroyed, this, [this]() {
1066+
connect(worker, &QObject::destroyed, this, [this] {
10671067
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
10681068
Q_EMIT allPendingRequestsCompleted();
10691069
}
@@ -1086,7 +1086,7 @@ void PFXPetApi::updatePet(const PFXPet &pfx_pet) {
10861086

10871087
connect(_latestWorker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::updatePetCallback);
10881088
connect(this, &PFXPetApi::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
1089-
connect(_latestWorker, &QObject::destroyed, [this](){
1089+
connect(_latestWorker, &QObject::destroyed, this, [this] {
10901090
if(findChildren<PFXHttpRequestWorker*>().count() == 0){
10911091
Q_EMIT allPendingRequestsCompleted();
10921092
}
@@ -1194,7 +1194,7 @@ void PFXPetApi::updatePetWithForm(const qint64 &pet_id, const ::test_namespace::
11941194
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPetApi::updatePetWithFormProgress);
11951195
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::updatePetWithFormCallback);
11961196
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
1197-
connect(worker, &QObject::destroyed, this, [this]() {
1197+
connect(worker, &QObject::destroyed, this, [this] {
11981198
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
11991199
Q_EMIT allPendingRequestsCompleted();
12001200
}
@@ -1217,7 +1217,7 @@ void PFXPetApi::updatePetWithForm(const qint64 &pet_id, const ::test_namespace::
12171217

12181218
connect(_latestWorker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::updatePetWithFormCallback);
12191219
connect(this, &PFXPetApi::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
1220-
connect(_latestWorker, &QObject::destroyed, [this](){
1220+
connect(_latestWorker, &QObject::destroyed, this, [this] {
12211221
if(findChildren<PFXHttpRequestWorker*>().count() == 0){
12221222
Q_EMIT allPendingRequestsCompleted();
12231223
}
@@ -1325,7 +1325,7 @@ void PFXPetApi::uploadFile(const qint64 &pet_id, const ::test_namespace::Optiona
13251325
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPetApi::uploadFileProgress);
13261326
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::uploadFileCallback);
13271327
connect(this, &PFXPetApi::abortRequestsSignal, worker, &QObject::deleteLater);
1328-
connect(worker, &QObject::destroyed, this, [this]() {
1328+
connect(worker, &QObject::destroyed, this, [this] {
13291329
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
13301330
Q_EMIT allPendingRequestsCompleted();
13311331
}
@@ -1348,7 +1348,7 @@ void PFXPetApi::uploadFile(const qint64 &pet_id, const ::test_namespace::Optiona
13481348

13491349
connect(_latestWorker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPetApi::uploadFileCallback);
13501350
connect(this, &PFXPetApi::abortRequestsSignal, _latestWorker, &QObject::deleteLater);
1351-
connect(_latestWorker, &QObject::destroyed, [this](){
1351+
connect(_latestWorker, &QObject::destroyed, this, [this] {
13521352
if(findChildren<PFXHttpRequestWorker*>().count() == 0){
13531353
Q_EMIT allPendingRequestsCompleted();
13541354
}

samples/client/petstore/cpp-qt-addDownloadProgress/client/PFXPrimitivesApi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void PFXPrimitivesApi::primitivesIntegerPost(const ::test_namespace::OptionalPar
228228
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPrimitivesApi::primitivesIntegerPostProgress);
229229
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPrimitivesApi::primitivesIntegerPostCallback);
230230
connect(this, &PFXPrimitivesApi::abortRequestsSignal, worker, &QObject::deleteLater);
231-
connect(worker, &QObject::destroyed, this, [this]() {
231+
connect(worker, &QObject::destroyed, this, [this] {
232232
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
233233
Q_EMIT allPendingRequestsCompleted();
234234
}
@@ -301,7 +301,7 @@ void PFXPrimitivesApi::primitivesNumberPut(const ::test_namespace::OptionalParam
301301
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXPrimitivesApi::primitivesNumberPutProgress);
302302
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXPrimitivesApi::primitivesNumberPutCallback);
303303
connect(this, &PFXPrimitivesApi::abortRequestsSignal, worker, &QObject::deleteLater);
304-
connect(worker, &QObject::destroyed, this, [this]() {
304+
connect(worker, &QObject::destroyed, this, [this] {
305305
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
306306
Q_EMIT allPendingRequestsCompleted();
307307
}

samples/client/petstore/cpp-qt-addDownloadProgress/client/PFXStoreApi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void PFXStoreApi::deleteOrder(const QString &order_id) {
242242
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXStoreApi::deleteOrderProgress);
243243
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXStoreApi::deleteOrderCallback);
244244
connect(this, &PFXStoreApi::abortRequestsSignal, worker, &QObject::deleteLater);
245-
connect(worker, &QObject::destroyed, this, [this]() {
245+
connect(worker, &QObject::destroyed, this, [this] {
246246
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
247247
Q_EMIT allPendingRequestsCompleted();
248248
}
@@ -315,7 +315,7 @@ void PFXStoreApi::getInventory() {
315315
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXStoreApi::getInventoryProgress);
316316
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXStoreApi::getInventoryCallback);
317317
connect(this, &PFXStoreApi::abortRequestsSignal, worker, &QObject::deleteLater);
318-
connect(worker, &QObject::destroyed, this, [this]() {
318+
connect(worker, &QObject::destroyed, this, [this] {
319319
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
320320
Q_EMIT allPendingRequestsCompleted();
321321
}
@@ -408,7 +408,7 @@ void PFXStoreApi::getOrderById(const qint64 &order_id) {
408408
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXStoreApi::getOrderByIdProgress);
409409
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXStoreApi::getOrderByIdCallback);
410410
connect(this, &PFXStoreApi::abortRequestsSignal, worker, &QObject::deleteLater);
411-
connect(worker, &QObject::destroyed, this, [this]() {
411+
connect(worker, &QObject::destroyed, this, [this] {
412412
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
413413
Q_EMIT allPendingRequestsCompleted();
414414
}
@@ -483,7 +483,7 @@ void PFXStoreApi::placeOrder(const PFXOrder &pfx_order) {
483483
connect(worker, &PFXHttpRequestWorker::downloadProgress, this, &PFXStoreApi::placeOrderProgress);
484484
connect(worker, &PFXHttpRequestWorker::on_execution_finished, this, &PFXStoreApi::placeOrderCallback);
485485
connect(this, &PFXStoreApi::abortRequestsSignal, worker, &QObject::deleteLater);
486-
connect(worker, &QObject::destroyed, this, [this]() {
486+
connect(worker, &QObject::destroyed, this, [this] {
487487
if (findChildren<PFXHttpRequestWorker*>().count() == 0) {
488488
Q_EMIT allPendingRequestsCompleted();
489489
}

0 commit comments

Comments
 (0)