Cleanup: Move unique ptr instead of releasing
Change a few places in the policy code to use std::move() with std::unique_ptr instead of calling release() on them. It's slightly more idiomatic and a bit safer. Bug: none Change-Id: I7b25af583369cac6234f712a4cadeefad09c47d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2035879Reviewed-by:Nikita Podguzov <nikitapodguzov@chromium.org> Commit-Queue: Maksim Ivanov <emaxx@chromium.org> Cr-Commit-Position: refs/heads/master@{#738137}
Showing
Please register or sign in to comment