mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-28 14:56:35 +00:00
operator= is a function too! std::forward is still appropriate.
Fix the potentially unsafe use of std::move I added to FifoQueue.
This commit is contained in:
parent
af7ed820f5
commit
e82c9e616d
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ public:
|
||||||
void Push(Arg&& t)
|
void Push(Arg&& t)
|
||||||
{
|
{
|
||||||
// create the element, add it to the queue
|
// create the element, add it to the queue
|
||||||
m_write_ptr->current = std::move(t);
|
m_write_ptr->current = std::forward<Arg>(t);
|
||||||
// set the next pointer to a new element ptr
|
// set the next pointer to a new element ptr
|
||||||
// then advance the write pointer
|
// then advance the write pointer
|
||||||
ElementPtr* new_ptr = new ElementPtr();
|
ElementPtr* new_ptr = new ElementPtr();
|
||||||
|
|
Loading…
Add table
Reference in a new issue