Commit 6d4bb919 authored by Xi Cheng's avatar Xi Cheng Committed by Commit Bot

Replace push_back with emplace_back

Change-Id: Ie3d2ebaf98ca26de363dd961f64d5461b909ec14
Reviewed-on: https://chromium-review.googlesource.com/1089803Reviewed-by: default avatarMike Wittman <wittman@chromium.org>
Commit-Queue: Xi Cheng <chengx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565097}
parent cf61ddd6
......@@ -519,9 +519,9 @@ void NativeStackSamplerWin::CopyToSample(
sample->frames.reserve(stack.size());
for (const auto& frame : stack) {
sample->frames.push_back(StackSamplingProfiler::Frame(
sample->frames.emplace_back(
reinterpret_cast<uintptr_t>(frame.instruction_pointer),
GetModuleIndex(frame.module.Get(), modules)));
GetModuleIndex(frame.module.Get(), modules));
}
}
......
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