[Glacier] Don't move const-refs in hashmap.
This commit is contained in:
parent
7715a5898b
commit
2a3d384336
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ ErrorCode HashMap<K, V, H>::Insert(const K& key, const V& value) {
|
||||||
return ALREADY_EXISTS;
|
return ALREADY_EXISTS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ll.PushFront({Move(key), Move(value)});
|
ll.PushFront({key, value});
|
||||||
size_++;
|
size_++;
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue