Skip to content

Commit

Permalink
incremental: Fix more clang-tidy warnings
Browse files Browse the repository at this point in the history
* performance-unnecessary-copy-initialization & performance-move-const-arg

Test: m
Change-Id: I50c6ee757392eac01630f264751a667cbd6e3c28
  • Loading branch information
luca020400 authored and sagarrokade006 committed Sep 22, 2020
1 parent f44d02a commit fa272ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/incremental/ServiceWrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class RealTimedQueueWrapper : public TimedQueueWrapper {
auto it = mJobs.begin();
// Always acquire begin(). We can't use it after unlock as mTimedJobs can change.
for (; it != mJobs.end() && it->when <= now; it = mJobs.begin()) {
auto job = std::move(it->what);
const auto& job = it->what;
mJobs.erase(it);

lock.unlock();
Expand Down

0 comments on commit fa272ca

Please sign in to comment.