diff --git a/modules/openapi-generator/src/main/resources/cpp-qt-client/HttpRequest.cpp.mustache b/modules/openapi-generator/src/main/resources/cpp-qt-client/HttpRequest.cpp.mustache index a241ce842c3e..de55e0ec87d1 100644 --- a/modules/openapi-generator/src/main/resources/cpp-qt-client/HttpRequest.cpp.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-qt-client/HttpRequest.cpp.mustache @@ -376,12 +376,12 @@ void {{prefix}}HttpRequestWorker::execute({{prefix}}HttpRequestInput *input) { } if (reply != nullptr) { reply->setParent(this); - connect(reply, &QNetworkReply::finished, [this, reply] { + connect(reply, &QNetworkReply::finished, this, [this, reply] { on_reply_finished(reply); }); } if (timeOutTimer.interval() > 0) { - QObject::connect(&timeOutTimer, &QTimer::timeout, [this, reply] { + QObject::connect(&timeOutTimer, &QTimer::timeout, this, [this, reply] { on_reply_timeout(reply); }); timeOutTimer.start(); diff --git a/samples/client/petstore/cpp-qt/client/PFXHttpRequest.cpp b/samples/client/petstore/cpp-qt/client/PFXHttpRequest.cpp index 4664b9a399b6..a57cb6c6b6da 100644 --- a/samples/client/petstore/cpp-qt/client/PFXHttpRequest.cpp +++ b/samples/client/petstore/cpp-qt/client/PFXHttpRequest.cpp @@ -383,12 +383,12 @@ void PFXHttpRequestWorker::execute(PFXHttpRequestInput *input) { } if (reply != nullptr) { reply->setParent(this); - connect(reply, &QNetworkReply::finished, [this, reply] { + connect(reply, &QNetworkReply::finished, this, [this, reply] { on_reply_finished(reply); }); } if (timeOutTimer.interval() > 0) { - QObject::connect(&timeOutTimer, &QTimer::timeout, [this, reply] { + QObject::connect(&timeOutTimer, &QTimer::timeout, this, [this, reply] { on_reply_timeout(reply); }); timeOutTimer.start();