Title: [295409] trunk/Source/WebGPU/WebGPU/ShaderModule.mm
- Revision
- 295409
- Author
- [email protected]
- Date
- 2022-06-08 21:55:57 -0700 (Wed, 08 Jun 2022)
Log Message
WebGPU::ShaderModule::convertCheckResult() should use std::forward
<https://webkit.org/b/241437>
<rdar://94662366>
Reviewed by Darin Adler.
* Source/WebGPU/WebGPU/ShaderModule.mm:
(WebGPU::ShaderModule::convertCheckResult):
- Switch from WTFMove() to std::forward().
Canonical link: https://commits.webkit.org/251415@main
Modified Paths
Diff
Modified: trunk/Source/WebGPU/WebGPU/ShaderModule.mm (295408 => 295409)
--- trunk/Source/WebGPU/WebGPU/ShaderModule.mm 2022-06-09 01:42:15 UTC (rev 295408)
+++ trunk/Source/WebGPU/WebGPU/ShaderModule.mm 2022-06-09 04:55:57 UTC (rev 295409)
@@ -122,7 +122,7 @@
auto ShaderModule::convertCheckResult(std::variant<WGSL::SuccessfulCheck, WGSL::FailedCheck>&& checkResult) -> CheckResult
{
return WTF::switchOn(WTFMove(checkResult), [](auto&& check) -> CheckResult {
- return WTFMove(check);
+ return std::forward<decltype(check)>(check);
});
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes