mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-31 22:02:58 -06:00
Core: Fixed missing pick in Map::Put
git-svn-id: svn://ultimatepp.org/upp/trunk@10251 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
dca71c118d
commit
489aa84d21
1 changed files with 1 additions and 1 deletions
|
|
@ -465,7 +465,7 @@ int AMap<K, T, V>::Put(const K& k, T&& x)
|
|||
{
|
||||
int i = key.Put(k);
|
||||
if(i < value.GetCount())
|
||||
value[i] = x;
|
||||
value[i] = pick(x);
|
||||
else {
|
||||
ASSERT(i == value.GetCount());
|
||||
value.Add(pick(x));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue