commit | cd85368c7c057295ece2f6953046280d125f0f8a | [log] [tgz] |
---|---|---|
author | Tommy Nyquist <nyquist@chromium.org> | Thu Mar 14 09:41:01 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Mar 14 09:41:01 2019 |
tree | 4ac6723f58dd318763e97f0498d8acda1e62e91f | |
parent | d0087d6c2635ab5f2a6e5aed9f1e1cd07b483363 [diff] |
[leveldb_proto] Reset original proto pointer to enable RVO The initial implementation of the ParseToProto in proto_database_impl.h returned a new empty proto using a new std::unique_ptr if the serialized proto could not be parsed. This CL instead changes it to reset the pointer contained in the unique_ptr, which should enable RVO. Bug: 939986 Change-Id: Id348c21c7f8749edc19fadd6c4cd94c055d239ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1519320 Reviewed-by: ssid <ssid@chromium.org> Commit-Queue: Tommy Nyquist <nyquist@chromium.org> Cr-Commit-Position: refs/heads/master@{#640678}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .