History

fix implicit this

RTUnreal committed 1 year ago

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

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

Unified · Split

interface/src/Application_Graphics.cpp+2−2
@@ -319,7 +319,7 @@ void Application::initializeUi() { · 318 unmodified lines
319319
320320 #if !defined(DISABLE_QML)
321321 _glWidget->installEventFilter(offscreenUi.data());
322− offscreenUi->setMouseTranslator([=](const QPointF& pt) {
322+ offscreenUi->setMouseTranslator([=, this](const QPointF& pt) {
323323 QPointF result = pt;
324324 auto displayPlugin = getActiveDisplayPlugin();
325325 if (displayPlugin->isHmd()) {
@@ -362,7 +362,7 @@ void Application::initializeUi() { · 36 unmodified lines
362362 }
363363
364364 auto compositorHelper = DependencyManager::get<CompositorHelper>();
365− connect(compositorHelper.data(), &CompositorHelper::allowMouseCaptureChanged, this, [=] {
365+ connect(compositorHelper.data(), &CompositorHelper::allowMouseCaptureChanged, this, [=, this] {
366366 if (isHMDMode()) {
367367 auto compositorHelper = DependencyManager::get<CompositorHelper>(); // don't capture outer smartpointer
368368 showCursor(compositorHelper->getAllowMouseCapture() ?