diff --git a/src/corelib/platform/darwin/qdarwinpermissionplugin.mm b/src/corelib/platform/darwin/qdarwinpermissionplugin.mm index 5c527f396c8..b6c0cbe777f 100644 --- a/src/corelib/platform/darwin/qdarwinpermissionplugin.mm +++ b/src/corelib/platform/darwin/qdarwinpermissionplugin.mm @@ -28,7 +28,7 @@ return; } - [m_handler requestPermission:permission withCallback:[=](Qt::PermissionStatus status) { + [m_handler requestPermission:permission withCallback:[&](Qt::PermissionStatus status) { // In case the callback comes in on a secondary thread we need to marshal it // back to the main thread. And if it doesn't, we still want to propagate it // via an event, to avoid any GCD locks deadlocking the application on iOS