Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/IntMap.h

Issue 29677755: Issue 6279 - Make HashContainer movable and optimize resizing by moving entries. (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Remove unneeded ctor. Rename _assign() Created Jan. 24, 2018, 7:31 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | compiled/Map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/IntMap.h
===================================================================
--- a/compiled/IntMap.h
+++ b/compiled/IntMap.h
@@ -73,17 +73,17 @@
struct Uint32MapEntry : Uint32SetEntry
{
typedef Uint32SetEntry super;
typedef Value value_type;
value_type second;
Uint32MapEntry(key_type_cref key = KEY_INVALID, value_type value = value_type())
- : Uint32SetEntry(key), second(value)
+ : Uint32SetEntry(key), second(std::move(value))
{
}
void erase()
{
super::erase();
second = value_type();
}
« no previous file with comments | « no previous file | compiled/Map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld