commit | 7d5d0087e956f1d23ee444ab524a9bd5b07c2f03 | [log] [tgz] |
---|---|---|
author | Chih-hung Hsieh <chh@google.com> | Wed Dec 12 17:24:13 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Dec 12 17:24:13 2018 +0000 |
tree | d1f2b54f0fa3d5713daea3e815275e9a715e9c14 | |
parent | 0ad5182f86d5565527e9227bb4a5bfad73c23259 [diff] | |
parent | 82cace1ca85aeb907a41062fe758255a4a30d72c [diff] |
Merge "Fix performance-for-range-copy warnings"
diff --git a/src/swappy/src/main/cpp/Swappy.cpp b/src/swappy/src/main/cpp/Swappy.cpp index 15076a2..d1b03f1 100644 --- a/src/swappy/src/main/cpp/Swappy.cpp +++ b/src/swappy/src/main/cpp/Swappy.cpp
@@ -197,7 +197,7 @@ } template<typename T> void executeTracers(T& tracers) { - for (auto tracer : tracers) { + for (const auto& tracer : tracers) { tracer(); } }