summaryrefslogtreecommitdiff
path: root/adb/file_sync_client.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2016-08-01 20:13:53 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-08-01 20:13:54 +0000
commit4efbce14b5b9075f0c190feb6603464f6207a24e (patch)
tree142de15041f5a0f8d4428c011e1e4c1422a3c2b7 /adb/file_sync_client.cpp
parent9f05901b9ac580d93fb2cdf1bf8de9e64ba7570f (diff)
parent8f7b9e3d39cdae8363816aa7bcbab0d79fd70cea (diff)
Merge "Fix clang-tidy performance warnings in syste/core."
Diffstat (limited to 'adb/file_sync_client.cpp')
-rw-r--r--adb/file_sync_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/file_sync_client.cpp b/adb/file_sync_client.cpp
index 6a9e163715..fbca770f9e 100644
--- a/adb/file_sync_client.cpp
+++ b/adb/file_sync_client.cpp
@@ -433,7 +433,7 @@ class SyncConnection {
typedef void (sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char* name);
static bool sync_ls(SyncConnection& sc, const char* path,
- std::function<sync_ls_cb> func) {
+ const std::function<sync_ls_cb>& func) {
if (!sc.SendRequest(ID_LIST, path)) return false;
while (true) {