[go: nahoru, domu]

Subsituting pattern ScopedVector push_back.(ptr.release()) with push_back(ptr.Pass()) in device/bluetooth

BUG=457697
R=rpaquay@chromium.org

Review URL: https://codereview.chromium.org/1160263002

Cr-Commit-Position: refs/heads/master@{#332546}
diff --git a/AUTHORS b/AUTHORS
index 1a42189f..bde4e64 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -491,6 +491,7 @@
 Sevan Janiyan <venture37@geeklan.co.uk>
 ShankarGanesh K <blr.bmlab@gmail.com>
 Shanmuga Pandi M <shanmuga.m@samsung.com>
+Shail Singhal <shail.s@samsung.com>
 Sherry Mou <wenjinm@amazon.com>
 Shez Baig <sbaig1@bloomberg.net>
 Shiliu Wang <aofdwsl@gmail.com>
diff --git a/device/bluetooth/bluetooth_low_energy_win.cc b/device/bluetooth/bluetooth_low_energy_win.cc
index 2201268..ebac47d0 100644
--- a/device/bluetooth/bluetooth_low_energy_win.cc
+++ b/device/bluetooth/bluetooth_low_energy_win.cc
@@ -649,7 +649,7 @@
       case kError:
         return false;
       case kOk:
-        devices->push_back(device_info.release());
+        devices->push_back(device_info.Pass());
     }
   }
 }