mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-21 05:30:08 +00:00
apt/applet_manager: std::move parameter in GlanceParameter()
Same behavior, minus a redundant copy.
This commit is contained in:
parent
a6e37b48e9
commit
7eabcdf1c3
@ -209,10 +209,11 @@ ResultVal<MessageParameter> AppletManager::GlanceParameter(AppletId app_id) {
|
|||||||
|
|
||||||
// Note: The NS module always clears the DSPSleep and DSPWakeup signals even in GlanceParameter.
|
// Note: The NS module always clears the DSPSleep and DSPWakeup signals even in GlanceParameter.
|
||||||
if (next_parameter->signal == SignalType::DspSleep ||
|
if (next_parameter->signal == SignalType::DspSleep ||
|
||||||
next_parameter->signal == SignalType::DspWakeup)
|
next_parameter->signal == SignalType::DspWakeup) {
|
||||||
next_parameter = {};
|
next_parameter = {};
|
||||||
|
}
|
||||||
|
|
||||||
return MakeResult<MessageParameter>(parameter);
|
return MakeResult<MessageParameter>(std::move(parameter));
|
||||||
}
|
}
|
||||||
|
|
||||||
ResultVal<MessageParameter> AppletManager::ReceiveParameter(AppletId app_id) {
|
ResultVal<MessageParameter> AppletManager::ReceiveParameter(AppletId app_id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user