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

Unified Diff: device/bluetooth/bluez/bluetooth_adapter_bluez.cc

Issue 2729333002: Replace unique_ptr.reset(other_unique_ptr.release() with std::move() in device/bluetooth/ (Closed)
Patch Set: Created 3 years, 10 months 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/bluetooth/bluetooth_discovery_session.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluez/bluetooth_adapter_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_adapter_bluez.cc b/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
index f5f343398e73aadafb0952a15f15faea053b9367..77ec31bfd445a86c59b14d7d48fb90ef045f18e3 100644
--- a/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
@@ -1459,7 +1459,7 @@ void BluetoothAdapterBlueZ::SetDiscoveryFilter(
return;
}
- current_filter_.reset(discovery_filter.release());
+ current_filter_ = std::move(discovery_filter);
bluez::BluetoothAdapterClient::DiscoveryFilter dbus_discovery_filter;
« no previous file with comments | « device/bluetooth/bluetooth_discovery_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698