Commit 323dfe37 authored by Florian Sattler's avatar Florian Sattler Committed by Commit Bot

[cleanup] Refactored two methods to no longer copy.

Fixing clang-tidy warning.

Bug: v8:8015
Change-Id: I6bf929bea03a59b40f205482b7604f44e61bc6f8
Reviewed-on: https://chromium-review.googlesource.com/1209846
Commit-Queue: Florian Sattler <sattlerf@google.com>
Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55714}
parent f2aba4fc
......@@ -2052,8 +2052,9 @@ void WriteLcovDataForRange(std::vector<uint32_t>& lines, int start_line,
}
void WriteLcovDataForNamedRange(std::ostream& sink,
std::vector<uint32_t>& lines, std::string name,
int start_line, int end_line, uint32_t count) {
std::vector<uint32_t>& lines,
const std::string& name, int start_line,
int end_line, uint32_t count) {
WriteLcovDataForRange(lines, start_line, end_line, count);
sink << "FN:" << start_line + 1 << "," << name << std::endl;
sink << "FNDA:" << count << "," << name << std::endl;
......@@ -3039,8 +3040,9 @@ void Shell::SetWaitUntilDone(Isolate* isolate, bool value) {
}
namespace {
bool ProcessMessages(Isolate* isolate,
std::function<platform::MessageLoopBehavior()> behavior) {
bool ProcessMessages(
Isolate* isolate,
const std::function<platform::MessageLoopBehavior()>& behavior) {
Platform* platform = GetDefaultPlatform();
while (true) {
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
......
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