mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-23 10:37:52 -05:00
ResultVal: Remove MoveFrom()
Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue.
This commit is contained in:
@ -347,7 +347,7 @@ void GetVsyncInterruptEvent(Service::Interface* self) {
|
||||
int port = *port_select.begin();
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
rb.PushCopyHandles(
|
||||
Kernel::g_handle_table.Create(ports[port].vsync_interrupt_event).MoveFrom());
|
||||
Kernel::g_handle_table.Create(ports[port].vsync_interrupt_event).Unwrap());
|
||||
} else {
|
||||
LOG_ERROR(Service_CAM, "invalid port_select=%u", port_select.m_val);
|
||||
rb.Push(ERROR_INVALID_ENUM_VALUE);
|
||||
@ -366,7 +366,7 @@ void GetBufferErrorInterruptEvent(Service::Interface* self) {
|
||||
int port = *port_select.begin();
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
rb.PushCopyHandles(
|
||||
Kernel::g_handle_table.Create(ports[port].buffer_error_interrupt_event).MoveFrom());
|
||||
Kernel::g_handle_table.Create(ports[port].buffer_error_interrupt_event).Unwrap());
|
||||
} else {
|
||||
LOG_ERROR(Service_CAM, "invalid port_select=%u", port_select.m_val);
|
||||
rb.Push(ERROR_INVALID_ENUM_VALUE);
|
||||
@ -400,7 +400,7 @@ void SetReceiving(Service::Interface* self) {
|
||||
}
|
||||
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
rb.PushCopyHandles(Kernel::g_handle_table.Create(port.completion_event).MoveFrom());
|
||||
rb.PushCopyHandles(Kernel::g_handle_table.Create(port.completion_event).Unwrap());
|
||||
} else {
|
||||
LOG_ERROR(Service_CAM, "invalid port_select=%u", port_select.m_val);
|
||||
rb.Push(ERROR_INVALID_ENUM_VALUE);
|
||||
|
Reference in New Issue
Block a user