From fbac331528f445af90bce955918337a0b6d7a511 Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Wed, 19 Jun 2024 23:10:37 +0100 Subject: [PATCH] DEV9: Use std::move in SimpleQueue --- pcsx2/DEV9/SimpleQueue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/DEV9/SimpleQueue.h b/pcsx2/DEV9/SimpleQueue.h index ebdf4d59cc..3150d4385e 100644 --- a/pcsx2/DEV9/SimpleQueue.h +++ b/pcsx2/DEV9/SimpleQueue.h @@ -52,7 +52,7 @@ void SimpleQueue::Enqueue(T entry) SimpleQueueEntry* newEntry = head.exchange(newHead); //Fill in - newEntry->value = entry; + newEntry->value = std::move(entry); newEntry->next = newHead; //Set ready (can be dequeued) @@ -68,7 +68,7 @@ bool SimpleQueue::Dequeue(T* entry) SimpleQueueEntry* retEntry = tail; tail = retEntry->next; - *entry = retEntry->value; + *entry = std::move(retEntry->value); delete retEntry; return true; }