forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AW] Fix presubmit errors: use nullptr and make_unique.
This patch addresses the following issues: - presubmit prefers to have a nullptr instead of "std::unique_ptr<T>()". - also use make_unique instead of creating unique_ptr directly (via a pointer created with new), which is also preferred by presubmit. BUG=993812 Change-Id: I930f235dad3d6b9f93670b9ec957d0bc71889ea4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1754163 Commit-Queue: Tim Volodine <timvolodine@chromium.org> Reviewed-by: Richard Coles <torne@chromium.org> Cr-Commit-Position: refs/heads/master@{#686854}
- Loading branch information
Tim Volodine
authored and
Commit Bot
committed
Aug 14, 2019
1 parent
b4bb5b9
commit 60ec12d
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters