-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=120805 Source/WTF: Reviewed by Andreas Kling. * wtf/Vector.h: (WTF::::expandCapacity): Remove const from the pointer passed to expandCapacity, it can be non-const if we're moving. (WTF::::append): Change append to take U&& and use std::forward when constructing the element and when passing the element along to appendSlowCase if that's necessary. (WTF::::appendSlowCase): Use std::forward. (WTF::::uncheckedAppend): Rename val to value. Tools: Reviewed by Sam Weinig. Add a test for Vector<MoveOnly>::append. * TestWebKitAPI/Tests/WTF/Vector.cpp: (TestWebKitAPI::TEST): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155541 268f45cc-cd09-0410-ab3c-d52691b4dbfc
96e736c6