WorkQueueWin: don't move rvalues
authorjfbastien@apple.com <jfbastien@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Mar 2018 20:46:58 +0000 (20:46 +0000)
committerjfbastien@apple.com <jfbastien@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Mar 2018 20:46:58 +0000 (20:46 +0000)
commit495e71437dd9bdf65db92ef902a4335b48af5bd4
tree32cfba7ca5241a25a69e042d1a260d6db4974e85
parenta4e79f340a50fa5eaedea54507e4761c5079da16
WorkQueueWin: don't move rvalues
https://bugs.webkit.org/show_bug.cgi?id=184190
<rdar://problem/39049850>

Reviewed by Mark Lam.

As part of #184167 optional is now more frequently an rvalue
reference, and moving its .value() is not a thing that should be
done anymore.

* wtf/win/WorkQueueWin.cpp:
(WTF::WorkQueue::unregisterAndCloseHandle):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/win/WorkQueueWin.cpp