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

Unified Diff: device/hid/hid_connection_linux.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/hid/device_monitor_linux.cc ('k') | device/hid/hid_service_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_connection_linux.cc
diff --git a/device/hid/hid_connection_linux.cc b/device/hid/hid_connection_linux.cc
index a2a4ebc9ab04470654fa7bc2e62489e66ad9528a..05fda64baad944e35aa963742a3795ea96e53ee9 100644
--- a/device/hid/hid_connection_linux.cc
+++ b/device/hid/hid_connection_linux.cc
@@ -7,8 +7,8 @@
#include <errno.h>
#include <linux/hidraw.h>
#include <sys/ioctl.h>
-
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/files/file_path.h"
@@ -136,7 +136,7 @@ HidConnectionLinux::HidConnectionLinux(
file_task_runner_(file_task_runner),
weak_factory_(this) {
task_runner_ = base::ThreadTaskRunnerHandle::Get();
- device_file_ = device_file.Pass();
+ device_file_ = std::move(device_file);
// The helper is passed a weak pointer to this connection so that it can be
// cleaned up after the connection is closed.
« no previous file with comments | « device/hid/device_monitor_linux.cc ('k') | device/hid/hid_service_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698