Title: [276462] trunk/Source/WebCore
- Revision
- 276462
- Author
- [email protected]
- Date
- 2021-04-22 14:50:13 -0700 (Thu, 22 Apr 2021)
Log Message
[WebXR] Closure is capturing this unnecessarily
https://bugs.webkit.org/show_bug.cgi?id=224946
Reviewed by Tim Horton.
Remove the "this" capture.
* Modules/webxr/WebXRInputSourceArray.cpp:
(WebCore::WebXRInputSourceArray::handleRemovedInputSources):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (276461 => 276462)
--- trunk/Source/WebCore/ChangeLog 2021-04-22 21:19:38 UTC (rev 276461)
+++ trunk/Source/WebCore/ChangeLog 2021-04-22 21:50:13 UTC (rev 276462)
@@ -1,3 +1,15 @@
+2021-04-22 Dean Jackson <[email protected]>
+
+ [WebXR] Closure is capturing this unnecessarily
+ https://bugs.webkit.org/show_bug.cgi?id=224946
+
+ Reviewed by Tim Horton.
+
+ Remove the "this" capture.
+
+ * Modules/webxr/WebXRInputSourceArray.cpp:
+ (WebCore::WebXRInputSourceArray::handleRemovedInputSources):
+
2021-04-22 Commit Queue <[email protected]>
Unreviewed, reverting r271644.
Modified: trunk/Source/WebCore/Modules/webxr/WebXRInputSourceArray.cpp (276461 => 276462)
--- trunk/Source/WebCore/Modules/webxr/WebXRInputSourceArray.cpp 2021-04-22 21:19:38 UTC (rev 276461)
+++ trunk/Source/WebCore/Modules/webxr/WebXRInputSourceArray.cpp 2021-04-22 21:50:13 UTC (rev 276462)
@@ -113,7 +113,7 @@
// 3. For each XR input source that is no longer available:
// 3.1 Let inputSource be the XRInputSource in session's list of active XR input sources associated with the XR input source.
// 3.2 Add inputSource to removed.
- m_inputSources.removeAllMatching([this, &inputSources, &removed, &inputEvents](auto& source) {
+ m_inputSources.removeAllMatching([&inputSources, &removed, &inputEvents](auto& source) {
if (!WTF::anyOf(inputSources, [&source](auto& item) { return item.handle == source->handle(); })) {
removed.append(source.copyRef());
source->disconnect();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes