History

fix implicit this

RTUnreal committed 1 year ago

Commit 86c5f2c1 parent 611faa942 files · +134 −135Browse files

Showing the changes to interface/src/Application.cpp (1 of 42 files). Show all

Unified · Split

interface/src/Application.cpp+3−3
@@ -851,7 +851,7 @@ void Application::showUrlHandler(const QUrl& url) { · 850 unmodified lines
851851 }
852852
853853 ModalDialogListener* dlg = OffscreenUi::asyncQuestion("Confirm openUrl", "Do you recognize this path or code and want to open or execute it: " + url.toDisplayString());
854− QObject::connect(dlg, &ModalDialogListener::response, this, [=](QVariant answer) {
854+ QObject::connect(dlg, &ModalDialogListener::response, this, [=, this](QVariant answer) {
855855 QObject::disconnect(dlg, &ModalDialogListener::response, this, nullptr);
856856 if (QMessageBox::Yes == static_cast<QMessageBox::StandardButton>(answer.toInt())) {
857857 // Unset the handler, open the URL, and the reset the handler
@@ -1009,7 +1009,7 @@ void Application::loadServerlessDomain(QUrl domainURL) { · 151 unmodified lines
10091009 return;
10101010 }
10111011
1012− connect(request, &ResourceRequest::finished, this, [=]() {
1012+ connect(request, &ResourceRequest::finished, this, [=, this]() {
10131013 if (request->getResult() == ResourceRequest::Success) {
10141014 auto namedPaths = prepareServerlessDomainContents(domainURL, request->getData());
10151015 auto nodeList = DependencyManager::get<NodeList>();
@@ -2484,7 +2484,7 @@ void Application::userKickConfirmation(const QUuid& nodeID, unsigned int banFlag · 1468 unmodified lines
24842484
24852485 if (dlg->getDialogItem()) {
24862486
2487− QObject::connect(dlg, &ModalDialogListener::response, this, [=] (QVariant answer) {
2487+ QObject::connect(dlg, &ModalDialogListener::response, this, [=, this] (QVariant answer) {
24882488 QObject::disconnect(dlg, &ModalDialogListener::response, this, nullptr);
24892489
24902490 bool yes = (static_cast<QMessageBox::StandardButton>(answer.toInt()) == QMessageBox::Yes);