mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
fix TMap move insertion, was using the copy constructor due to a missing std::move
This commit is contained in:
parent
b60b3fc09a
commit
65ea4f91b6
1 changed files with 2 additions and 2 deletions
|
@ -1128,12 +1128,12 @@ public:
|
|||
Node *n = FindKey(key);
|
||||
if (n != NULL)
|
||||
{
|
||||
n->Pair.Value = value;
|
||||
n->Pair.Value = std::move(value);
|
||||
}
|
||||
else
|
||||
{
|
||||
n = NewKey(key);
|
||||
::new(&n->Pair.Value) VT(value);
|
||||
::new(&n->Pair.Value) VT(std::move(value));
|
||||
}
|
||||
return n->Pair.Value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue