[webkit-changes] [WebKit/WebKit] 9019b5: Fix compiler warning in WTF::moveToVectorOf()
Chris Dumez
noreply at github.com
Thu Sep 14 09:51:20 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9019b5fba9140ef43a39d0855594b638fbf8f4f9
https://github.com/WebKit/WebKit/commit/9019b5fba9140ef43a39d0855594b638fbf8f4f9
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-09-14 (Thu, 14 Sep 2023)
Changed paths:
M Source/WTF/wtf/Vector.h
Log Message:
-----------
Fix compiler warning in WTF::moveToVectorOf()
https://bugs.webkit.org/show_bug.cgi?id=261534
Reviewed by Darin Adler.
Fix compiler warning in WTF::moveToVectorOf():
```
/usr/local/include/wtf/Vector.h:1935:16: warning: Forwarding reference passed
to std::move(), which may unexpectedly cause lvalues to be moved; use
std::forward() instead [bugprone-move-forwarding-reference]
```
* Source/WTF/wtf/Vector.h:
(WTF::moveToVectorOf):
Canonical link: https://commits.webkit.org/267994@main
More information about the webkit-changes
mailing list