Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1070)

Unified Diff: device/usb/usb_device_handle_impl.cc

Issue 1544323002: Convert Pass()→std::move() in //device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/usb/usb_device_filter.cc ('k') | device/usb/usb_device_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_handle_impl.cc
diff --git a/device/usb/usb_device_handle_impl.cc b/device/usb/usb_device_handle_impl.cc
index 16401fea72283890dda17bf2b481050b0f364a46..5bbbffe01483cb6459f561dc31c956b42da6e27a 100644
--- a/device/usb/usb_device_handle_impl.cc
+++ b/device/usb/usb_device_handle_impl.cc
@@ -5,6 +5,7 @@
#include "device/usb/usb_device_handle_impl.h"
#include <algorithm>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -264,7 +265,7 @@ UsbDeviceHandleImpl::Transfer::CreateControlTransfer(
&UsbDeviceHandleImpl::Transfer::PlatformCallback,
transfer.get(), timeout);
- return transfer.Pass();
+ return transfer;
}
// static
@@ -293,7 +294,7 @@ UsbDeviceHandleImpl::Transfer::CreateBulkTransfer(
&UsbDeviceHandleImpl::Transfer::PlatformCallback, transfer.get(),
timeout);
- return transfer.Pass();
+ return transfer;
}
// static
@@ -322,7 +323,7 @@ UsbDeviceHandleImpl::Transfer::CreateInterruptTransfer(
&UsbDeviceHandleImpl::Transfer::PlatformCallback, transfer.get(),
timeout);
- return transfer.Pass();
+ return transfer;
}
// static
@@ -357,7 +358,7 @@ UsbDeviceHandleImpl::Transfer::CreateIsochronousTransfer(
packets, &Transfer::PlatformCallback, transfer.get(), timeout);
libusb_set_iso_packet_lengths(transfer->platform_transfer_, packet_length);
- return transfer.Pass();
+ return transfer;
}
UsbDeviceHandleImpl::Transfer::Transfer(
@@ -881,7 +882,7 @@ void UsbDeviceHandleImpl::ControlTransferInternal(
return;
}
- SubmitTransfer(transfer.Pass());
+ SubmitTransfer(std::move(transfer));
}
void UsbDeviceHandleImpl::IsochronousTransferInternal(
@@ -912,7 +913,7 @@ void UsbDeviceHandleImpl::IsochronousTransferInternal(
this, endpoint_address, buffer, static_cast<int>(length), packets,
packet_length, timeout, callback_task_runner, callback);
- SubmitTransfer(transfer.Pass());
+ SubmitTransfer(std::move(transfer));
}
void UsbDeviceHandleImpl::GenericTransferInternal(
@@ -965,7 +966,7 @@ void UsbDeviceHandleImpl::GenericTransferInternal(
return;
}
- SubmitTransfer(transfer.Pass());
+ SubmitTransfer(std::move(transfer));
}
void UsbDeviceHandleImpl::SubmitTransfer(scoped_ptr<Transfer> transfer) {
« no previous file with comments | « device/usb/usb_device_filter.cc ('k') | device/usb/usb_device_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698