Commit 44d15f65 authored by Marja Hölttä's avatar Marja Hölttä Committed by Commit Bot

[all] Upstream clang-tidy performance-for-range-copy changes

Change-Id: I31aabfe9bdaf02da088620920bbe1e85a9f1859a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2135630
Auto-Submit: Marja Hölttä <marja@chromium.org>
Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67005}
parent 744a1d23
...@@ -2239,7 +2239,7 @@ void Shell::OnExit(v8::Isolate* isolate) { ...@@ -2239,7 +2239,7 @@ void Shell::OnExit(v8::Isolate* isolate) {
if (i::FLAG_dump_counters_nvp) { if (i::FLAG_dump_counters_nvp) {
// Dump counters as name-value pairs. // Dump counters as name-value pairs.
for (auto pair : counters) { for (const auto& pair : counters) {
std::string key = pair.first; std::string key = pair.first;
Counter* counter = pair.second; Counter* counter = pair.second;
if (counter->is_histogram()) { if (counter->is_histogram()) {
...@@ -2260,7 +2260,7 @@ void Shell::OnExit(v8::Isolate* isolate) { ...@@ -2260,7 +2260,7 @@ void Shell::OnExit(v8::Isolate* isolate) {
<< std::string(kValueBoxSize - 6, ' ') << "|\n"; << std::string(kValueBoxSize - 6, ' ') << "|\n";
std::cout << "+" << std::string(kNameBoxSize, '-') << "+" std::cout << "+" << std::string(kNameBoxSize, '-') << "+"
<< std::string(kValueBoxSize, '-') << "+\n"; << std::string(kValueBoxSize, '-') << "+\n";
for (auto pair : counters) { for (const auto& pair : counters) {
std::string key = pair.first; std::string key = pair.first;
Counter* counter = pair.second; Counter* counter = pair.second;
if (counter->is_histogram()) { if (counter->is_histogram()) {
......
...@@ -84,7 +84,7 @@ DefaultPlatform::DefaultPlatform( ...@@ -84,7 +84,7 @@ DefaultPlatform::DefaultPlatform(
DefaultPlatform::~DefaultPlatform() { DefaultPlatform::~DefaultPlatform() {
base::MutexGuard guard(&lock_); base::MutexGuard guard(&lock_);
if (worker_threads_task_runner_) worker_threads_task_runner_->Terminate(); if (worker_threads_task_runner_) worker_threads_task_runner_->Terminate();
for (auto it : foreground_task_runner_map_) { for (const auto& it : foreground_task_runner_map_) {
it.second->Terminate(); it.second->Terminate();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment