Title: [156526] trunk/Source/WTF
- Revision
- 156526
- Author
- [email protected]
- Date
- 2013-09-26 18:58:52 -0700 (Thu, 26 Sep 2013)
Log Message
"Build fix".
We can't use std::move. Explicitly destroy the old value and then construct the new in place.
* wtf/HashTable.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (156525 => 156526)
--- trunk/Source/WTF/ChangeLog 2013-09-27 01:56:03 UTC (rev 156525)
+++ trunk/Source/WTF/ChangeLog 2013-09-27 01:58:52 UTC (rev 156526)
@@ -1,5 +1,13 @@
2013-09-26 Anders Carlsson <[email protected]>
+ "Build fix".
+
+ We can't use std::move. Explicitly destroy the old value and then construct the new in place.
+
+ * wtf/HashTable.h:
+
+2013-09-26 Anders Carlsson <[email protected]>
+
Use the move assignment operator when reinserting values in the hash map
https://bugs.webkit.org/show_bug.cgi?id=122003
Modified: trunk/Source/WTF/wtf/HashTable.h (156525 => 156526)
--- trunk/Source/WTF/wtf/HashTable.h 2013-09-27 01:56:03 UTC (rev 156525)
+++ trunk/Source/WTF/wtf/HashTable.h 2013-09-27 01:58:52 UTC (rev 156526)
@@ -931,7 +931,8 @@
#endif
Value* newEntry = lookupForWriting(Extractor::extract(entry)).first;
- *newEntry = std::move(entry);
+ newEntry->~Value();
+ new (NotNull, newEntry) ValueType(std::move(entry));
return newEntry;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes