mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
buffer_queue_consumer: std::move std::shared_ptr in Connect()
Avoids an unnecessary reference count increment and decrement
This commit is contained in:
parent
c0c4f6dfa6
commit
3020f72b0c
@ -169,7 +169,7 @@ Status BufferQueueConsumer::Connect(std::shared_ptr<IConsumerListener> consumer_
|
|||||||
return Status::NoInit;
|
return Status::NoInit;
|
||||||
}
|
}
|
||||||
|
|
||||||
core->consumer_listener = consumer_listener;
|
core->consumer_listener = std::move(consumer_listener);
|
||||||
core->consumer_controlled_by_app = controlled_by_app;
|
core->consumer_controlled_by_app = controlled_by_app;
|
||||||
|
|
||||||
return Status::NoError;
|
return Status::NoError;
|
||||||
|
Loading…
Reference in New Issue
Block a user