diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2016-08-01 20:13:53 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-08-01 20:13:54 +0000 |
commit | 4efbce14b5b9075f0c190feb6603464f6207a24e (patch) | |
tree | 142de15041f5a0f8d4428c011e1e4c1422a3c2b7 /adb/file_sync_client.cpp | |
parent | 9f05901b9ac580d93fb2cdf1bf8de9e64ba7570f (diff) | |
parent | 8f7b9e3d39cdae8363816aa7bcbab0d79fd70cea (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.cpp | 2 |
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) { |